Skip to content

Commit e1ac6a8

Browse files
authored
Merge pull request #43 from numtide/testing
only set hostPlatform if report.system is present
2 parents 9614462 + bd0bacd commit e1ac6a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/nixos/system.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
}:
77
{
88
nixpkgs = lib.mkIf (!options.nixpkgs.pkgs.isDefined) {
9-
hostPlatform = lib.mkDefault config.facter.report.system;
9+
hostPlatform = lib.mkIf (config.facter.report.system or null != null) (lib.mkDefault config.facter.report.system);
1010
};
1111
}

0 commit comments

Comments
 (0)