24 lines
486 B
Makefile
24 lines
486 B
Makefile
hostname := `hostname`
|
|
|
|
local OPERATION *FLAGS:
|
|
sudo nixos-rebuild \
|
|
--flake .#{{hostname}} \
|
|
{{FLAGS}} \
|
|
{{OPERATION}}
|
|
|
|
|
|
buildiso *FLAGS:
|
|
nix build .#nixosConfigurations.liveiso.config.system.build.isoImage {{FLAGS}}
|
|
|
|
updatekeys:
|
|
fd . systemProfiles/secrets -E '*.nix' -t f -x sops updatekeys
|
|
|
|
|
|
remote OPERATION HOST REMOTEHOST *FLAGS:
|
|
nixos-rebuild \
|
|
--fast \
|
|
--flake .#{{HOST}} \
|
|
--target-host {{REMOTEHOST}} \
|
|
--use-remote-sudo \
|
|
{{FLAGS}} \
|
|
{{OPERATION}}
|