summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-04-19 20:36:50 +0200
committerSilas Schöffel <sils@sils.li>2024-04-19 20:36:50 +0200
commitab91bb00f227218f30a44b80a89acbd518e4168a (patch)
tree2c153610815934add67ae7539d3c72c5e9563b7d
parentmodules: introduce role system (diff)
downloadnix-config-ab91bb00f227218f30a44b80a89acbd518e4168a.tar.gz
nix-config-ab91bb00f227218f30a44b80a89acbd518e4168a.zip
basesystem: make module toggleable
-rw-r--r--modules/nixos/sils/basesystem.nix7
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 = {