nixos/facter: handle case where we do not have readOnly included
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user