Skip to content

Commit 062a1d4

Browse files
Merge pull request #425 from sini/main
fix: replace deprecated pkgs.system with pkgs.stdenv.hostPlatform.system
2 parents 75b5964 + 92b808c commit 062a1d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nixos-modules/host/options.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@
5353
] ++ (map (x: x.value) defs);
5454
prefix = [ "microvm" "vms" name "config" ];
5555
inherit (config) specialArgs pkgs;
56-
system = if config.pkgs != null then config.pkgs.system else pkgs.system;
56+
system =
57+
if config.pkgs != null then
58+
config.pkgs.stdenv.hostPlatform.system
59+
else
60+
pkgs.stdenv.hostPlatform.system;
5761
});
5862
});
5963
};

0 commit comments

Comments
 (0)