From 1290388956947171ba08140043437ba710d3cd1d Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Wed, 14 Aug 2024 11:24:36 +0200 Subject: [PATCH] nixos-modules: allow hardware.cpu.type to be set to null --- nix/nixos-modules/hwCommon.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nix/nixos-modules/hwCommon.nix b/nix/nixos-modules/hwCommon.nix index 681b86d..e57f52c 100644 --- a/nix/nixos-modules/hwCommon.nix +++ b/nix/nixos-modules/hwCommon.nix @@ -21,7 +21,10 @@ in description = '' Configures the CPU type to expect this configuration to run on ''; - type = lib.types.enum [ "amd" "intel" ]; + type = with lib.types; nullOr enum [ + "amd" + "intel" + ]; # required };