diff options
author | Silas Schöffel <sils@sils.li> | 2024-04-20 19:17:14 +0200 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-04-20 19:17:14 +0200 |
commit | 1e50b99a634fb78aa11d4159f41a261816094720 (patch) | |
tree | 85c0d7a07632a5b74701fe51d8002b440069bfef /modules/nixos | |
parent | sils: rename nix namespace to nix-config (diff) | |
download | nix-config-1e50b99a634fb78aa11d4159f41a261816094720.tar.gz nix-config-1e50b99a634fb78aa11d4159f41a261816094720.zip |
sils/basesystem: explicitely enable redistributable firmware
Diffstat (limited to 'modules/nixos')
-rw-r--r-- | modules/nixos/sils/basesystem.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/nixos/sils/basesystem.nix b/modules/nixos/sils/basesystem.nix index aa8ef88..89b5a5f 100644 --- a/modules/nixos/sils/basesystem.nix +++ b/modules/nixos/sils/basesystem.nix @@ -7,10 +7,8 @@ }: let cfg = config.sils.basesystem; in { - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; options.sils.basesystem.enable = lib.mkEnableOption "basesystem"; + config = lib.mkIf cfg.enable { networking.hostName = config.sils.meta.hostname; @@ -118,6 +116,9 @@ in { nixpkgs.hostPlatform = config.sils.meta.system; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware = { + cpu.intel.updateMicrocode = true; + enableRedistributableFirmware = true; + }; }; } |