aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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"