From ab91bb00f227218f30a44b80a89acbd518e4168a Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Fri, 19 Apr 2024 20:36:50 +0200 Subject: basesystem: make module toggleable --- modules/nixos/sils/basesystem.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules') 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 = { -- cgit 1.4.1