diff options
Diffstat (limited to '')
-rw-r--r-- | modules/hm/sils/default.nix | 1 | ||||
-rw-r--r-- | modules/hm/sils/sway.nix | 16 | ||||
-rw-r--r-- | modules/nixos/sils/default.nix | 1 | ||||
-rw-r--r-- | modules/nixos/sils/roles.nix | 1 | ||||
-rw-r--r-- | modules/nixos/sils/sway.nix | 15 |
5 files changed, 34 insertions, 0 deletions
diff --git a/modules/hm/sils/default.nix b/modules/hm/sils/default.nix index cef49ac..6a2b43c 100644 --- a/modules/hm/sils/default.nix +++ b/modules/hm/sils/default.nix @@ -10,6 +10,7 @@ ./jameica.nix ./kdeconnect.nix ./mail.nix + ./sway.nix ./zathura.nix ]; } diff --git a/modules/hm/sils/sway.nix b/modules/hm/sils/sway.nix new file mode 100644 index 0000000..4298dd0 --- /dev/null +++ b/modules/hm/sils/sway.nix @@ -0,0 +1,16 @@ +{ + config, + lib, + ... +}: let + cfg = config.sils.sway; +in { + options.sils.sway.enable = lib.mkEnableOption "sway"; + config = lib.mkIf cfg.enable { + wayland.windowManager.sway = { + enable = true; + config = { + }; + }; + }; +} diff --git a/modules/nixos/sils/default.nix b/modules/nixos/sils/default.nix index c335979..0098644 100644 --- a/modules/nixos/sils/default.nix +++ b/modules/nixos/sils/default.nix @@ -9,6 +9,7 @@ ./plymouth.nix ./roles.nix ./sudo.nix + ./sway.nix ./theming.nix ]; } diff --git a/modules/nixos/sils/roles.nix b/modules/nixos/sils/roles.nix index 678d2ed..bd7cb50 100644 --- a/modules/nixos/sils/roles.nix +++ b/modules/nixos/sils/roles.nix @@ -10,6 +10,7 @@ in { networking.enable = true; nix-config.enable = true; plymouth.enable = true; + sway.enable = true; theming.enable = true; } else if roleCmp "vm" diff --git a/modules/nixos/sils/sway.nix b/modules/nixos/sils/sway.nix new file mode 100644 index 0000000..4aac2f4 --- /dev/null +++ b/modules/nixos/sils/sway.nix @@ -0,0 +1,15 @@ +{ + config, + lib, + ... +}: let + cfg = config.sils.sway; +in { + options.sils.sway.enable = lib.mkEnableOption "sway"; + config = lib.mkIf cfg.enable { + programs.sway = { + enable = true; + package = null; + }; + }; +} |