This commit is contained in:
Chris Kruining 2025-12-01 14:14:32 +01:00
parent 331a912c82
commit 9f1a6e85ee
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
16 changed files with 541 additions and 467 deletions

View file

@ -1,11 +1,11 @@
@_default: list
[doc('List machines')]
@list:
ls -1 ../systems/x86_64-linux/
[no-exit-message]
[doc('Update the target machine')]
@update machine:
just assert '-d "../systems/x86_64-linux/{{ machine }}"' "Machine {{ machine }} does not exist, must be one of: $(ls ../systems/x86_64-linux/ | tr '\n' ' ')"
@_default: list
[doc('List machines')]
@list:
ls -1 ../systems/x86_64-linux/
[no-exit-message]
[doc('Update the target machine')]
@update machine:
just assert '-d "../systems/x86_64-linux/{{ machine }}"' "Machine {{ machine }} does not exist, must be one of: $(ls ../systems/x86_64-linux/ | tr '\n' ' ')"
nixos-rebuild switch --use-remote-sudo --target-host {{ machine }} --flake ..#{{ machine }}