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 ++++++++++++++++++++ system/settings/user-interface.nix | 9 --------- 2 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 system/settings/programs/nh.nix (limited to 'system/settings') 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; +} diff --git a/system/settings/user-interface.nix b/system/settings/user-interface.nix index d8ae301a..27f1d9aa 100644 --- a/system/settings/user-interface.nix +++ b/system/settings/user-interface.nix @@ -50,15 +50,6 @@ }; }; - programs.nh = { - enable = true; - flake = builtins.toString ../..; - clean = { - enable = true; - extraArgs = "--keep-since 14d"; - }; - }; - imports = [ ./services/xserver.nix ]; -- cgit 1.4.1