Justfile: add convenient wrapper around nixos-install

This commit is contained in:
steveej 2020-11-25 21:51:27 +01:00
parent 111fa91dcd
commit 3656773163

View file

@ -285,6 +285,9 @@ run-with-channels +cmds:
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
# Switch between gpg-card capable devices which have a copy of the same key
switch-gpg-card:
#!/usr/bin/env bash