feat(Justfile): cachix recipe and apply locally without ssh

This commit is contained in:
steveej 2023-05-23 18:09:54 +02:00
parent 349057f1c3
commit 5b6ecd0a25
8 changed files with 414 additions and 1 deletions

View file

@ -35,7 +35,7 @@ rebuild-remote-device device target rebuildarg="dry-activate" :
# Rebuild this device's NixOS
rebuild-this-device +rebuildargs="dry-activate":
nix run .#colmena -- apply --on $(hostname -s) {{rebuildargs}}
nix run .#colmena -- apply-local --sudo {{rebuildargs}}
# Re-render the versions of a remote device and rebuild its environment
update-remote-device devicename target rebuildmode='switch':
@ -318,3 +318,6 @@ test-connection:
sleep 5
done
cachix-use name:
nix run nixpkgs/nixos-unstable#cachix -- use {{name}} -m nixos -d nix/os/