Justfile: don't run just
with sudo
This commit is contained in:
parent
a839052ad6
commit
284b5859a9
1 changed files with 2 additions and 1 deletions
3
Justfile
3
Justfile
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue