Justfile: don't run just with sudo

This commit is contained in:
steveej 2020-12-13 21:39:27 +01:00
parent a839052ad6
commit 284b5859a9

View file

@ -282,11 +282,12 @@ _get_pass_entry path key:
run-with-channels +cmds:
#!/usr/bin/env bash
set -x
source $(just -v _get_nix_path {{invocation_directory()}}/nix/variables/versions.nix)
{{cmds}}
install-config config root:
sudo just run-with-channels nixos-install -I nixos-config={{invocation_directory()}}/{{config}} --root {{root}} --no-root-passwd
just run-with-channels sudo -E nixos-install -I nixos-config={{invocation_directory()}}/{{config}} --root {{root}} --no-root-passwd
# Switch between gpg-card capable devices which have a copy of the same key
switch-gpg-card: