From b80bbe97dceb1ebf3dac0e7fabc300d052c7a915 Mon Sep 17 00:00:00 2001 From: smayzy Date: Sat, 28 Jun 2025 13:59:09 +0000 Subject: [PATCH] move nh config to module --- hosts/desktop1/configuration.nix | 8 +------- modules/nix/nh.nix | 9 +++++++++ 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 modules/nix/nh.nix diff --git a/hosts/desktop1/configuration.nix b/hosts/desktop1/configuration.nix index ea9ca5b..96e9a05 100644 --- a/hosts/desktop1/configuration.nix +++ b/hosts/desktop1/configuration.nix @@ -11,6 +11,7 @@ ../../modules/nix/nvidia.nix ../../modules/nix/grub.nix ../../modules/nix/nvf.nix + ../../modules/nix/nh.nix ]; home-manager = { @@ -157,11 +158,4 @@ programs.firefox.enable = true; programs.zsh.enable = true; - - programs.nh = { - enable = true; - clean.enable = true; - clean.extraArgs = "--keep-since 30d --keep 10"; - flake = "/home/smayzy/nix-config"; - }; } diff --git a/modules/nix/nh.nix b/modules/nix/nh.nix new file mode 100644 index 0000000..88f17fe --- /dev/null +++ b/modules/nix/nh.nix @@ -0,0 +1,9 @@ +{ config, lib, pkgs, ...}: +{ +programs.nh = { + enable = true; + clean.enable = true; + clean.extraArgs = "--keep-since 30d --keep 10"; + flake = "/home/smayzy/nix-config"; + }; +}