Commit 799491fe authored by Gabriella Gonzalez's avatar Gabriella Gonzalez
Browse files

darwin.builder: Fix `system` for `install-credentials`

The script was being mistakenly being built for the guest
system instead of the host system
parent fad554ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ in

      # This installCredentials script is written so that it's as easy as
      # possible for a user to audit before confirming the `sudo`
      installCredentials = pkgs.writeShellScript "install-credentials" ''
      installCredentials = hostPkgs.writeShellScript "install-credentials" ''
        KEYS="''${1}"
        INSTALL=${hostPkgs.coreutils}/bin/install
        "''${INSTALL}" -g nixbld -m 600 "''${KEYS}/${user}_${keyType}" ${privateKey}