diff --git a/hosts/nfsroot/default.nix b/hosts/nfsroot/default.nix index d41c5171..7c608514 100644 --- a/hosts/nfsroot/default.nix +++ b/hosts/nfsroot/default.nix @@ -7,15 +7,15 @@ let ]; reinstallDacbert = pkgs.writeScriptBin "reinstall-dacbert" '' - SYSTEM=$(${pkgs.curl}/bin/curl -sLH "Accept: application/json" \ + SYSTEM=$(${lib.getExe pkgs.curl} -sLH "Accept: application/json" \ https://hydra.hq.c3d2.de/job/c3d2/nix-config/dacbert/latest \ - | ${pkgs.jq}/bin/jq -er .buildoutputs.out.path + | ${lib.getExe pkgs.jq} -er .buildoutputs.out.path ) - BOOT=$(${pkgs.curl}/bin/curl -sLH "Accept: application/json" \ + BOOT=$(${lib.getExe pkgs.curl} -sLH "Accept: application/json" \ https://hydra.hq.c3d2.de/job/c3d2/nix-config/dacbert-tftproot/latest \ - | ${pkgs.jq}/bin/jq -er .buildoutputs.out.path + | ${lib.getExe pkgs.jq} -er .buildoutputs.out.path ) - ${config.nix.package}/bin/nix --extra-experimental-features nix-command \ + ${lib.getExe config.nix.package} --extra-experimental-features nix-command \ copy \ --from https://nix-cache.hq.c3d2.de \ --to /var/lib/nfsroot/dacbert \