aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2024-05-23 13:56:00 +0300
committerPetri Hienonen <petri.hienonen@gmail.com>2025-11-30 12:29:57 +0200
commit08297376a85a1719518507e54fca9de954d2376a (patch)
tree3b9c58304b40248533bbb2bb5b7bad2da9da1ff0 /Makefile
parent75c2af4aedd2ac5c2cfc74b346625fa4b265541d (diff)
downloadnixos-08297376a85a1719518507e54fca9de954d2376a.tar.zst
Agenix configuration
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100755
index 0000000..301b3ae
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+default: rebuild
+
+rebuild:
+ run0 nixos-rebuild switch --flake .
+
+update:
+ nix flake update
+ run0 nixos-rebuild switch --flake .
+
+format:
+ fd -e nix -x nixfmt --strict --verify
+
+clean:
+ run0 nix-env --delete-generations +2 --profile /nix/var/nix/profiles/system
+ run0 nix-store --gc
+ run0 nix-store --optimise
+
+validate:
+ run0 nix-store --repair --verify --check-contents
+ run0 nix-store --optimise
+
+index:
+ systemd-run --scope -p MemoryMax=20G --user nix-index
+
+firefoxaddons:
+ nix flake show "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"