summary refs log tree commit diff stats
path: root/modules/nixos
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-06-02 14:38:57 +0200
committerSilas Schöffel <sils@sils.li>2024-06-02 14:38:57 +0200
commitc04d34ab44a1bd2b0118736d4a9a796f1c700eb2 (patch)
tree53f7b0e4fce40d066a08dbae0f213f4f4ea50f09 /modules/nixos
parenthyprland: init module (diff)
downloadnix-config-c04d34ab44a1bd2b0118736d4a9a796f1c700eb2.tar.gz
nix-config-c04d34ab44a1bd2b0118736d4a9a796f1c700eb2.zip
sway: init module
This inits both the nixos and the home-manager module
Diffstat (limited to 'modules/nixos')
-rw-r--r--modules/nixos/sils/default.nix1
-rw-r--r--modules/nixos/sils/roles.nix1
-rw-r--r--modules/nixos/sils/sway.nix15
3 files changed, 17 insertions, 0 deletions
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;
+    };
+  };
+}