about summary refs log tree commit diff
path: root/home/modules/profiles/base/config/waybar-settings.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/modules/profiles/base/config/waybar-settings.nix')
-rw-r--r--home/modules/profiles/base/config/waybar-settings.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/home/modules/profiles/base/config/waybar-settings.nix b/home/modules/profiles/base/config/waybar-settings.nix
index e208895..8cb3ef9 100644
--- a/home/modules/profiles/base/config/waybar-settings.nix
+++ b/home/modules/profiles/base/config/waybar-settings.nix
@@ -4,7 +4,7 @@
   height = 17;
   modules-left = [ "sway/workspaces" "sway/language" "cpu" "memory" ];
   modules-center = [ "clock" ];
-  modules-right = [ "custom/weather" "pulseaudio" "network" ];
+  modules-right = [ "custom/weather" "pulseaudio" "network" "custom/nixos" ];
 
   modules = {
     "sway/workspaces" = {
@@ -44,6 +44,11 @@
       interval = 3600;
     };
 
+    "custom/nixos" = {
+      format = "  {}";
+      exec = "/run/current-system/sw/bin/nixos-version | /run/current-system/sw/bin/grep -o '[0-9]\\+\\.[0-9]\\+' | /run/current-system/sw/bin/head -1";
+    };
+
     "network" = {
       interval = 5;
       interface = "enp4s0";