From 18f14ac391735bb2280f0c3efb58726afb600ea3 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Fri, 19 Apr 2024 20:37:53 +0200 Subject: role.sils: consume --- modules/nixos/sils/default.nix | 1 + modules/nixos/sils/roles.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 modules/nixos/sils/roles.nix (limited to 'modules') diff --git a/modules/nixos/sils/default.nix b/modules/nixos/sils/default.nix index 8ca6aa7..926814f 100644 --- a/modules/nixos/sils/default.nix +++ b/modules/nixos/sils/default.nix @@ -1,5 +1,6 @@ {...}: { imports = [ + ./roles.nix ./basesystem.nix ./meta.nix ./networking.nix diff --git a/modules/nixos/sils/roles.nix b/modules/nixos/sils/roles.nix new file mode 100644 index 0000000..07cd22f --- /dev/null +++ b/modules/nixos/sils/roles.nix @@ -0,0 +1,14 @@ +{config, ...}: let + roleCmp = string: config.role.sils == string; +in { + config.sils = + if roleCmp "laptop" + then { + basesystem.enable = true; + plymouth.enable = true; + theming.enable = true; + } + else if roleCmp "vm" + then {} + else {}; +} -- cgit 1.4.1