Create nix-flake-update.sh

This commit is contained in:
Dave Gallant
2024-02-21 19:56:36 -05:00
parent 616718705c
commit 0a44de200d
2 changed files with 10 additions and 5 deletions

View File

@@ -21,11 +21,7 @@ rollback:
nixos-rebuild --use-remote-sudo switch --rollback -I nixos-config="modules/machines/$(HOSTNAME)/configuration.nix"
update:
nix flake update
make
git add .
git commit -S -m "nix flake update: $$(TZ=UTC date '+%Y-%m-%d %H:%M:%S %Z')"
git push
@./nix-flake-update.sh
fmt:
alejandra .