feat(Justfile): cachix recipe and apply locally without ssh
This commit is contained in:
parent
349057f1c3
commit
5b6ecd0a25
8 changed files with 414 additions and 1 deletions
5
Justfile
5
Justfile
|
@ -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/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue