From 9515e95a457066ca5341b33b6cb856f23a285fd5 Mon Sep 17 00:00:00 2001 From: notohh Date: Sun, 24 Sep 2023 17:17:59 -0400 Subject: [PATCH] modules: init nh for all hosts --- modules/default.nix | 3 ++- modules/nix.nix | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/default.nix b/modules/default.nix index d441150..5c8b421 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -1,5 +1,6 @@ -{...}: { +{inputs, ...}: { imports = [ + inputs.nh.nixosModules.default ./security.nix ./networking.nix ./users.nix diff --git a/modules/nix.nix b/modules/nix.nix index eace30f..906a990 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -1,10 +1,15 @@ -{pkgs, ...}: { +_: { nixpkgs = { config = { allowUnfree = true; }; }; + nh = { + enable = true; + clean.enable = true; + }; + nix = { gc = { automatic = true;