From e469d1e0cfa4140e3de888c13fc0bf818ca417de Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 2 Aug 2024 14:40:56 -0400 Subject: [PATCH] home: add swayosd service --- homeManagerModules/apps/default.nix | 1 + homeManagerModules/apps/swayidle/default.nix | 2 +- homeManagerModules/apps/swayosd/default.nix | 9 +++++++++ homeManagerModules/desktop/wayland/default.nix | 1 + homeManagerModules/options.nix | 1 + 5 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 homeManagerModules/apps/swayosd/default.nix 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.";