summary refs log tree commit diff stats
path: root/system/settings/programs
diff options
context:
space:
mode:
authorAlan Pearce2024-11-15 12:33:51 +0100
committerAlan Pearce2024-11-15 12:33:51 +0100
commit3822220931b125c05d864920e3d29cb7096b759f (patch)
treed2483f2a445167a59df044161d34bddc152c834c /system/settings/programs
parent8dc044f11630209520e7db272a8937994b3e5db8 (diff)
downloadnixfiles-3822220931b125c05d864920e3d29cb7096b759f.tar.lz
nixfiles-3822220931b125c05d864920e3d29cb7096b759f.tar.zst
nixfiles-3822220931b125c05d864920e3d29cb7096b759f.zip
marvin: use nh_darwin fork of nh
Diffstat (limited to 'system/settings/programs')
-rw-r--r--system/settings/programs/nh.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/system/settings/programs/nh.nix b/system/settings/programs/nh.nix
new file mode 100644
index 00000000..10738de0
--- /dev/null
+++ b/system/settings/programs/nh.nix
@@ -0,0 +1,20 @@
+{ config, ... }: {
+  programs.nh =
+    let
+      flake = builtins.toString ../../..;
+    in
+    {
+      enable = true;
+      os = {
+        inherit flake;
+      };
+      home = {
+        inherit flake;
+      };
+      clean = {
+        enable = true;
+        extraArgs = "--keep-since 14d";
+      };
+    };
+  nix.gc.automatic = !config.programs.nh.clean.enable;
+}