Use a makefile for utility snippets
All checks were successful
Check Flake / check-flake (push) Successful in 12m54s

This commit is contained in:
2024-02-18 17:30:52 -07:00
parent 0e59fa3518
commit bfc1bb2da9
5 changed files with 16 additions and 15 deletions

15
Makefile Normal file
View File

@@ -0,0 +1,15 @@
# Lockfile utils
update-lockfile:
nix flake update --commit-lock-file
update-lockfile-without-commit:
nix flake update
# Agenix utils
edit-secret:
cd secrets && agenix -e $(filter-out $@,$(MAKECMDGOALS))
rekey-secrets:
cd secrets && agenix -r
# NixOS utils
clean-old-nixos-profiles:
doas nix-collect-garbage -d