feat: replace nixinate with just recipe
This commit is contained in:
parent
65ce9c5882
commit
45448d1099
3 changed files with 7 additions and 33 deletions
8
justfile
8
justfile
|
@ -16,8 +16,12 @@ boot *args:
|
|||
@sudo -v
|
||||
sudo nixos-rebuild boot --flake . --keep-going {{args}}
|
||||
|
||||
deploy system:
|
||||
nix run .#{{system}}
|
||||
deploy system user="leo":
|
||||
#!/usr/bin/env bash
|
||||
set -euxo pipefail
|
||||
flake=$(nix eval --impure --raw --expr "(builtins.getFlake \"$PWD\").outPath")
|
||||
nix copy "$flake" --to "ssh://{{user}}@{{system}}"
|
||||
ssh -t "{{user}}@{{system}}" "sudo flock -w 60 /dev/shm/deploy-{{system}} nixos-rebuild switch --flake $flake#{{system}}"
|
||||
|
||||
lint *args:
|
||||
statix check -i flake.nix **/hardware-configuration.nix {{args}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue