Commit 484feccb authored by Jörg Thalheim's avatar Jörg Thalheim
Browse files

nixos/facter: handle case where we do not have readOnly included

parent a5559142
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;
      };