about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-24 18:54:08 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-24 18:54:08 +0200
commit0e5bb4c91acef18f2a3089346585d579c2d8c1df (patch)
treeb8cbef21bd857c81b6b90067e87783939a1625bf
parentfmt (diff)
downloadnixos-config-0e5bb4c91acef18f2a3089346585d579c2d8c1df.tar.gz
nixos-config-0e5bb4c91acef18f2a3089346585d579c2d8c1df.tar.bz2
nixos-config-0e5bb4c91acef18f2a3089346585d579c2d8c1df.zip
Add host-specific dwmbar config
-rwxr-xr-xdotfiles/dwmbar/config20
-rw-r--r--hosts/home.nix1
-rw-r--r--hosts/phobos/home.nix23
-rw-r--r--hosts/vm/home.nix23
4 files changed, 46 insertions, 21 deletions
diff --git a/dotfiles/dwmbar/config b/dotfiles/dwmbar/config
deleted file mode 100755
index 8010c87..0000000
--- a/dotfiles/dwmbar/config
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-# What modules, in what order
-MODULES="weather wifi internet volume ram_perc cpuload cputemp date time"
-
-# Modules that require an active internet connection
-ONLINE_MODULES="weather internet"
-
-# Delay between showing the status bar
-DELAY="0.05"
-
-# Where the custom modules are stored
-CUSTOM_DIR="/home/$USER/.config/dwmbar/modules/custom/"
-
-# Separator between modules
-SEPARATOR=" | "
-
-# Padding at the end and beggining of the status bar
-RIGHT_PADDING=" "
-LEFT_PADDING=" "
diff --git a/hosts/home.nix b/hosts/home.nix
index 72e8ac1..f61210d 100644
--- a/hosts/home.nix
+++ b/hosts/home.nix
@@ -160,7 +160,6 @@ in
     configFile."zathura/zathurarc".source = dotfiles + "/zathurarc";
     configFile."sxhkd/".source = dotfiles + "/sxhkd/";
     configFile."dunst/dunstrc".source = dotfiles + "/dunstrc";
-    configFile."dwmbar".source = dotfiles + "/dwmbar/";
   };
 
   home.file = {
diff --git a/hosts/phobos/home.nix b/hosts/phobos/home.nix
index a697850..4e177b3 100644
--- a/hosts/phobos/home.nix
+++ b/hosts/phobos/home.nix
@@ -11,4 +11,27 @@
     custom.kindlegen
     kcc
   ];
+
+  xdg.configFile."dwmbar/config".text = ''
+    #!/bin/sh
+
+    # What modules, in what order
+    MODULES="weather wifi internet volume ram_perc cpuload cputemp battery date time"
+
+    # Modules that require an active internet connection
+    ONLINE_MODULES="weather internet"
+
+    # Delay between showing the status bar
+    DELAY="0.05"
+
+    # Where the custom modules are stored
+    CUSTOM_DIR="/home/$USER/.config/dwmbar/modules/custom/"
+
+    # Separator between modules
+    SEPARATOR=" | "
+
+    # Padding at the end and beggining of the status bar
+    RIGHT_PADDING=" "
+    LEFT_PADDING=" "
+  '';
 }
diff --git a/hosts/vm/home.nix b/hosts/vm/home.nix
index 7c9ef1e..8686c6a 100644
--- a/hosts/vm/home.nix
+++ b/hosts/vm/home.nix
@@ -4,4 +4,27 @@
     #jetbrains.idea-community
     #qtcreator
   ];
+
+  xdg.configFile."dwmbar/config".text = ''
+    #!/bin/sh
+
+    # What modules, in what order
+    MODULES="weather wifi internet volume ram_perc cpuload cputemp date time"
+
+    # Modules that require an active internet connection
+    ONLINE_MODULES="weather internet"
+
+    # Delay between showing the status bar
+    DELAY="0.05"
+
+    # Where the custom modules are stored
+    CUSTOM_DIR="/home/$USER/.config/dwmbar/modules/custom/"
+
+    # Separator between modules
+    SEPARATOR=" | "
+
+    # Padding at the end and beggining of the status bar
+    RIGHT_PADDING=" "
+    LEFT_PADDING=" "
+  '';
 }