From 36a27952a07db1a7e048d89f4b51ea442d37b7dd Mon Sep 17 00:00:00 2001 From: encode42 Date: Sat, 24 Jan 2026 00:39:39 -0500 Subject: [PATCH] Start using nh --- modules/common/nix.nix | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/modules/common/nix.nix b/modules/common/nix.nix index 744572b..8555235 100644 --- a/modules/common/nix.nix +++ b/modules/common/nix.nix @@ -1,16 +1,9 @@ +{ flakeRoot, ... }: + { nix = { channel.enable = false; - gc = { - automatic = true; - dates = "weekly"; - - persistent = true; - - options = "--delete-older-than 7d"; - }; - optimise = { automatic = true; dates = [ "1w" ]; @@ -27,4 +20,18 @@ }; documentation.man.enable = false; + + programs.nh = { + enable = true; + + flake = toString flakeRoot; + + clean = { + enable = true; + + dates = "weekly"; + + extraArgs = "--delete-older-than 7d"; + }; + }; } -- 2.54.0