use the root output variable and not other ones

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-17 11:51:44 +01:00
parent a5f5f553c0
commit e02b3526c5

View file

@ -65,7 +65,7 @@ with lib;
doc=$(${pkgs.curl}/bin/curl -H "accept: application/json" ${cfg.hydraServer}/build/$build) doc=$(${pkgs.curl}/bin/curl -H "accept: application/json" ${cfg.hydraServer}/build/$build)
drvname=$(echo $doc | ${pkgs.jq}/bin/jq -r '.drvpath') drvname=$(echo $doc | ${pkgs.jq}/bin/jq -r '.drvpath')
output=$(${pkgs.nix}/bin/nix-store -r $drvname) output=$(${pkgs.nix}/bin/nix-store -r $drvname)
${pkgs.nix}/bin/nix-env -p /nix/var/nix/profiles/system --set ${output} ${pkgs.nix}/bin/nix-env -p /nix/var/nix/profiles/system --set $output
${ ${
if cfg.reboot then if cfg.reboot then
'' ''