nixos-config/Justfile
2025-06-06 14:48:41 +02:00

20 lines
390 B
Makefile

hostname := `hostname`
local OPERATION *FLAGS:
nixos-rebuild \
--flake .#{{hostname}} \
--use-remote-sudo \
{{FLAGS}} \
{{OPERATION}}
updatekeys:
fd . secrets -E '*.nix' -t f -x sops updatekeys -y
remote OPERATION HOST REMOTEHOST *FLAGS:
nixos-rebuild \
--fast \
--flake .#{{HOST}} \
--target-host {{REMOTEHOST}} \
--use-remote-sudo \
{{FLAGS}} \
{{OPERATION}}