Skip to content

Commit 3fcb37d

Browse files
committed
deploy_nixos: make compatible with pkgs.nixos
Instead of using `os.system` which is cobbled-together by nixos/default.nix, use the full nixos config structure. We already rely on os.config to exist so might as well commit to it.
1 parent 7b34aec commit 3fcb37d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deploy_nixos/nixos-instantiate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ command=(nix-instantiate --show-trace --expr '
2424
trusted-public-keys =
2525
builtins.concatStringsSep " " os.config.nix.binaryCachePublicKeys;
2626
27-
drv_path = os.system.drvPath;
28-
out_path = os.system;
27+
drv_path = os.config.system.build.toplevel.drvPath;
28+
out_path = os.config.system.build.toplevel;
2929
}')
3030

3131
if readlink --version | grep -q GNU; then

0 commit comments

Comments
 (0)