Use a makefile for utility snippets
All checks were successful
Check Flake / check-flake (push) Successful in 12m54s
All checks were successful
Check Flake / check-flake (push) Successful in 12m54s
This commit is contained in:
parent
0e59fa3518
commit
bfc1bb2da9
15
Makefile
Normal file
15
Makefile
Normal 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
|
@ -61,6 +61,7 @@
|
|||||||
lm_sensors
|
lm_sensors
|
||||||
picocom
|
picocom
|
||||||
lf
|
lf
|
||||||
|
gnumake
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
#! /usr/bin/env nix-shell
|
|
||||||
#! nix-shell -i bash -p bash
|
|
||||||
|
|
||||||
nix flake update --commit-lock-file
|
|
@ -1,5 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
agenix -r
|
|
||||||
git commit . -m "Rekey secrets"
|
|
Loading…
x
Reference in New Issue
Block a user