diff options
author | Silas Schöffel <sils@sils.li> | 2024-04-19 20:36:50 +0200 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-04-19 20:36:50 +0200 |
commit | ab91bb00f227218f30a44b80a89acbd518e4168a (patch) | |
tree | 2c153610815934add67ae7539d3c72c5e9563b7d | |
parent | modules: introduce role system (diff) | |
download | nix-config-ab91bb00f227218f30a44b80a89acbd518e4168a.tar.gz nix-config-ab91bb00f227218f30a44b80a89acbd518e4168a.zip |
basesystem: make module toggleable
Diffstat (limited to '')
-rw-r--r-- | modules/nixos/sils/basesystem.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/nixos/sils/basesystem.nix b/modules/nixos/sils/basesystem.nix index 6d10f3f..aa8ef88 100644 --- a/modules/nixos/sils/basesystem.nix +++ b/modules/nixos/sils/basesystem.nix @@ -4,11 +4,14 @@ pkgs, modulesPath, ... -}: { +}: let + cfg = config.sils.basesystem; +in { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - config = { + options.sils.basesystem.enable = lib.mkEnableOption "basesystem"; + config = lib.mkIf cfg.enable { networking.hostName = config.sils.meta.hostname; boot = { |