aboutsummaryrefslogtreecommitdiff
path: root/lib/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/default.nix')
-rw-r--r--lib/default.nix5
1 files changed, 4 insertions, 1 deletions
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;