diff options
| -rw-r--r-- | srv/hadante/configuration.nix | 1 | ||||
| -rw-r--r-- | srv/hadante/waybar.nix | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/srv/hadante/configuration.nix b/srv/hadante/configuration.nix index 204339c..e2ed9aa 100644 --- a/srv/hadante/configuration.nix +++ b/srv/hadante/configuration.nix @@ -18,6 +18,7 @@ in ../../modules/desktop/zerotierone inputs.home-manager.nixosModules.home-manager ./agenix.nix + ./waybar.nix ]; options = { diff --git a/srv/hadante/waybar.nix b/srv/hadante/waybar.nix new file mode 100644 index 0000000..639ab24 --- /dev/null +++ b/srv/hadante/waybar.nix @@ -0,0 +1,36 @@ +{ pkgs, config, ... }: +{ + home-manager.users.${config.user} = { + programs.waybar = { + enable = true; + settings = { + mainBar = { + layer = "top"; + position = "top"; + height = 30; + output = [ + "eDP-1" + "HDMI-A-1" + ]; + modules-left = [ + "sway/workspaces" + "sway/mode" + "wlr/taskbar" + ]; + modules-center = [ + "sway/window" + ]; + modules-right = [ + "mpd" + "temperature" + ]; + + "sway/workspaces" = { + disable-scroll = true; + all-outputs = true; + }; + }; + }; + }; + }; +} |
