diff --git a/homeManagerModules/apps/default.nix b/homeManagerModules/apps/default.nix index 1dae49d1..d3931426 100644 --- a/homeManagerModules/apps/default.nix +++ b/homeManagerModules/apps/default.nix @@ -17,6 +17,7 @@ ./rofi ./swayidle ./swaylock + ./swayosd ./thunar ./tmux ./vsCodium diff --git a/homeManagerModules/apps/swayidle/default.nix b/homeManagerModules/apps/swayidle/default.nix index 10b359c5..05e0d0dc 100644 --- a/homeManagerModules/apps/swayidle/default.nix +++ b/homeManagerModules/apps/swayidle/default.nix @@ -9,7 +9,7 @@ swaymsg = lib.getExe' config.wayland.windowManager.sway.package "swaymsg"; in { - config = lib.mkIf config.ar.home.apps.swayidle.enable { + config = lib.mkIf cfg.apps.swayidle.enable { services.swayidle = { enable = true; diff --git a/homeManagerModules/apps/swayosd/default.nix b/homeManagerModules/apps/swayosd/default.nix new file mode 100644 index 00000000..42199d3a --- /dev/null +++ b/homeManagerModules/apps/swayosd/default.nix @@ -0,0 +1,9 @@ +{ + config, + lib, + ... +}: { + config = lib.mkIf config.ar.home.apps.swayosd.enable { + services.swayosd.enable = true; + }; +} diff --git a/homeManagerModules/desktop/wayland/default.nix b/homeManagerModules/desktop/wayland/default.nix index fca1a5d5..69c48339 100644 --- a/homeManagerModules/desktop/wayland/default.nix +++ b/homeManagerModules/desktop/wayland/default.nix @@ -11,6 +11,7 @@ rofi.enable = lib.mkDefault true; swayidle.enable = lib.mkDefault true; swaylock.enable = lib.mkDefault true; + swayosd.enable = lib.mkDefault true; waybar.enable = lib.mkDefault true; }; diff --git a/homeManagerModules/options.nix b/homeManagerModules/options.nix index 03c78858..a7c46852 100644 --- a/homeManagerModules/options.nix +++ b/homeManagerModules/options.nix @@ -64,6 +64,7 @@ in { rofi.enable = lib.mkEnableOption "Rofi launcher."; swayidle.enable = lib.mkEnableOption "Swayidle idle daemon."; swaylock.enable = lib.mkEnableOption "Swaylock screen locker."; + swayosd.enable = lib.mkEnableOption "On Screen Display (OSD) for volume/brightness/etc."; thunar.enable = lib.mkOption { description = "Thunar file manager.";