From 22930d0698fcd7c02ca44e1ca784c625978a6ad3 Mon Sep 17 00:00:00 2001 From: Alexander Kobjolke Date: Mon, 24 Mar 2025 22:32:57 +0100 Subject: [PATCH] feat: Enable nh tool on thrall and dregil --- hosts/dregil/default.nix | 1 + hosts/thrall/default.nix | 1 + modules/nh.nix | 14 ++++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 modules/nh.nix diff --git a/hosts/dregil/default.nix b/hosts/dregil/default.nix index 6077d33..68331df 100644 --- a/hosts/dregil/default.nix +++ b/hosts/dregil/default.nix @@ -30,5 +30,6 @@ ../../modules/podman ../../modules/tailscale ../../modules/flatpak.nix + ../../modules/nh.nix ]; } diff --git a/hosts/thrall/default.nix b/hosts/thrall/default.nix index ec4a885..f4a8c3e 100644 --- a/hosts/thrall/default.nix +++ b/hosts/thrall/default.nix @@ -30,6 +30,7 @@ in ../../modules/hledger-web.nix ../../modules/tailscale ../../modules/mosh.nix + ../../modules/nh.nix ]; # Use the GRUB 2 boot loader. diff --git a/modules/nh.nix b/modules/nh.nix new file mode 100644 index 0000000..b3fac63 --- /dev/null +++ b/modules/nh.nix @@ -0,0 +1,14 @@ +{ + lib, + ... +}: +{ + programs.nh = { + enable = true; + clean.enable = true; + clean.extraArgs = "--keep-since 4d --keep 3"; + flake = "/home/alex/src/nixos-config"; + }; + + nix.gc.automatic = lib.mkForce false; +}