From 7deeaa409b2fc8af04ba5b8d3e151eee37e82401 Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Mon, 13 Jan 2025 17:22:50 +0800 Subject: [PATCH] move nh.nix to module --- nixos/configurations/Tytonidae/default.nix | 1 - nixos/configurations/Tytonidae/nh.nix | 11 ----------- nixos/modules/default.nix | 1 + nixos/modules/nh.nix | 10 ++++++++++ 4 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 nixos/configurations/Tytonidae/nh.nix create mode 100644 nixos/modules/nh.nix diff --git a/nixos/configurations/Tytonidae/default.nix b/nixos/configurations/Tytonidae/default.nix index a9c83a1..91d2081 100644 --- a/nixos/configurations/Tytonidae/default.nix +++ b/nixos/configurations/Tytonidae/default.nix @@ -9,7 +9,6 @@ ./gui.nix ./users ./kvm.nix - ./nh.nix ./steam.nix # Include the hardware related config diff --git a/nixos/configurations/Tytonidae/nh.nix b/nixos/configurations/Tytonidae/nh.nix deleted file mode 100644 index 02b15ef..0000000 --- a/nixos/configurations/Tytonidae/nh.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ - ... -}: -{ - programs.nh = { - enable = true; - clean.enable = true; - clean.extraArgs = "--keep-since 4d --keep 3"; - flake = ./..; - }; -} diff --git a/nixos/modules/default.nix b/nixos/modules/default.nix index e65e5d6..ea1ddad 100644 --- a/nixos/modules/default.nix +++ b/nixos/modules/default.nix @@ -19,6 +19,7 @@ ./sops.nix ./dae ./openssh.nix + ./nh.nix ]; config = { diff --git a/nixos/modules/nh.nix b/nixos/modules/nh.nix new file mode 100644 index 0000000..a8958fd --- /dev/null +++ b/nixos/modules/nh.nix @@ -0,0 +1,10 @@ +{ ... }: +{ + config = { + programs.nh = { + enable = true; + clean.enable = true; + clean.extraArgs = "--keep-since 4d --keep 3"; + }; + }; +}