From 3822220931b125c05d864920e3d29cb7096b759f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 15 Nov 2024 12:33:51 +0100 Subject: marvin: use nh_darwin fork of nh --- system/settings/programs/nh.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 system/settings/programs/nh.nix (limited to 'system/settings/programs/nh.nix') 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; +} -- cgit 1.4.1