lots of stuff

This commit is contained in:
xunuwu 2024-02-23 05:34:33 +01:00
parent 926f8b190b
commit 6bae0fa254
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
42 changed files with 1109 additions and 73 deletions

View file

@ -1,6 +1,16 @@
remote OPERATION HOST:
nixos-rebuild \
--flake .#{{HOST}} \
--target-host xun@{{HOST}} \
--use-remote-sudo \
hostname := `hostname`
local OPERATION:
sudo nixos-rebuild \
--flake .#{{hostname}} \
{{OPERATION}}
remote OPERATION HOST HOSTNAME *FLAGS:
nixos-rebuild \
--fast \
--flake .#{{HOST}} \
--target-host xun@{{HOSTNAME}} \
--use-remote-sudo \
{{FLAGS}} \
{{OPERATION}}