From e85ce531149d41a382921505bb0a0ca53816acfa Mon Sep 17 00:00:00 2001 From: schererleander Date: Tue, 29 Jul 2025 13:06:29 +0200 Subject: feat: include home-manager only when home.nix exists --- lib/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/default.nix') diff --git a/lib/default.nix b/lib/default.nix index 16177fe..51329bf 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -30,6 +30,8 @@ rec { hostDir = ../hosts/${host}; hostCfg = hostDir + /configuration.nix; hostHome = hostDir + /home.nix; + + hmEnabled = builtins.pathExists hostHome; modules = [ hostCfg ] ++ lib.optionals darwinHost [ inputs.mac-app-util.darwinModules.default ] @@ -41,7 +43,8 @@ rec { ]; nixpkgs.overlays = overlays; } - + ] + ++ lib.optionals hmEnabled [ hmModule { home-manager.useGlobalPkgs = true; -- cgit v1.3.1