25 lines
442 B
Makefile
25 lines
442 B
Makefile
all:
|
|
doas nixos-rebuild switch --flake .#$${HOSTNAME_SHORT}
|
|
|
|
update:
|
|
nix flake lock --update-input nixpkgs
|
|
nix flake lock --update-input nixos-hardware
|
|
nix flake lock --update-input home-manager
|
|
|
|
vm:
|
|
doas nixos-rebuild switch --flake .#vm2 && result/bin/run-*-vm
|
|
|
|
clean:
|
|
doas nix-collect-garbage
|
|
doas nix store optimise
|
|
|
|
push:
|
|
@. ~/.bash_ssh
|
|
git push
|
|
|
|
pull:
|
|
@. ~/.bash_ssh
|
|
git pull
|
|
|
|
ci:
|
|
git commit -m"updates from makefile" --all
|