diff options
author | Silas Schöffel <sils@sils.li> | 2024-10-29 22:11:35 +0100 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-10-29 22:11:35 +0100 |
commit | 7f29c48e9481d6d4701ce78586e3465260cdd1a1 (patch) | |
tree | cbbbc0759b6fc69ca3b4ef23c1df0ac95c5d0062 /modules/nixos | |
parent | hyprland: remove master-layout specification (diff) | |
download | nix-config-7f29c48e9481d6d4701ce78586e3465260cdd1a1.tar.gz nix-config-7f29c48e9481d6d4701ce78586e3465260cdd1a1.zip |
roles.sils: add workstation role
Diffstat (limited to 'modules/nixos')
-rw-r--r-- | modules/nixos/roles.nix | 2 | ||||
-rw-r--r-- | modules/nixos/sils/roles.nix | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/modules/nixos/roles.nix b/modules/nixos/roles.nix index 71883e0..9640bb3 100644 --- a/modules/nixos/roles.nix +++ b/modules/nixos/roles.nix @@ -1,6 +1,6 @@ {lib, ...}: { options.role.sils = lib.mkOption { - type = lib.types.nullOr (lib.types.enum ["laptop" "undefined" "vm"]); + type = lib.types.nullOr (lib.types.enum ["laptop" "undefined" "vm" "workstation"]); default = null; description = "The role which should be applied to your configuration."; }; diff --git a/modules/nixos/sils/roles.nix b/modules/nixos/sils/roles.nix index a39af33..1ee88dd 100644 --- a/modules/nixos/sils/roles.nix +++ b/modules/nixos/sils/roles.nix @@ -24,5 +24,22 @@ in { } else if roleCmp "vm" then {} + else if roleCmp "workstation" + then { + apparmor.enable = lib.mkDefault true; + basesystem.enable = lib.mkDefault true; + disks.enable = lib.mkDefault true; + bluetooth.enable = lib.mkDefault true; + environment.enable = lib.mkDefault true; + firejail.enable = false; + font.enable = lib.mkDefault true; + hyprland.enable = lib.mkDefault true; + impermanence.enable = lib.mkDefault true; + networking.enable = lib.mkDefault true; + nix-config.enable = lib.mkDefault true; + plymouth.enable = lib.mkDefault false; + sway.enable = lib.mkDefault false; + theming.enable = lib.mkDefault true; + } else {}; } |