Prefer nixos-rebuild to the rebuild script

The rebuild script calls sudo, which I won't need as I test running
buildkite-agent prefixed with `sudo` or as the root user.
This commit is contained in:
William Carroll 2020-08-16 20:45:50 +01:00
parent 0a0b09c714
commit 51cdb87223

View file

@ -1,6 +1,8 @@
set -euo pipefail set -euo pipefail
set -x
echo "$USER" nixos-rebuild \
-I nixos-config=/home/wpcarro/briefcase/nixos/socrates/configuration.nix \
/home/wpcarro/.nix-profile/bin/rebuild -I nixpkgs=/home/wpcarro/nixpkgs \
-I depot=/home/wpcarro/depot \
-I briefcase=/home/wpcarro/briefcase \
switch