From 7f29c48e9481d6d4701ce78586e3465260cdd1a1 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Tue, 29 Oct 2024 22:11:35 +0100 Subject: roles.sils: add workstation role --- modules/nixos/roles.nix | 2 +- modules/nixos/sils/roles.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) 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 {}; } -- cgit 1.4.1