From 484feccb9f07b95b9bd9fb217a8232396d8edce7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 20 Nov 2025 12:40:09 +0100 Subject: [PATCH] nixos/facter: handle case where we do not have readOnly included --- nixos/modules/hardware/facter/system.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/hardware/facter/system.nix b/nixos/modules/hardware/facter/system.nix index 32648f7d07e4..2019bfa522d3 100644 --- a/nixos/modules/hardware/facter/system.nix +++ b/nixos/modules/hardware/facter/system.nix @@ -8,7 +8,10 @@ # Skip setting hostPlatform if it's read-only config.nixpkgs = lib.optionalAttrs - (config.hardware.facter.report.system or null != null && !options.nixpkgs.hostPlatform.readOnly) + ( + config.hardware.facter.report.system or null != null + && !(options.nixpkgs.hostPlatform.readOnly or false) + ) { hostPlatform = lib.mkDefault config.hardware.facter.report.system; };