From 802f78cea56b64f04277d7724bdca631c7352745 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 8 Mar 2024 16:40:49 +0800 Subject: [PATCH] lib/home-manager: fix `has{Nixos,Darwin}ConfigAttr` --- lib/home-manager.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/home-manager.nix b/lib/home-manager.nix index 74df1467..6409e775 100644 --- a/lib/home-manager.nix +++ b/lib/home-manager.nix @@ -15,7 +15,7 @@ rec { # The default value when `attrPath` is missing. default: - attrs ? nixosConfig && lib.attrByPath attrPath default attrs; + attrs ? nixosConfig && lib.attrByPath attrPath default attrs.nixosConfig; hasDarwinConfigAttr = # The configuration attribute set of the home-manager configuration. @@ -26,7 +26,7 @@ rec { # The default value when `attrPath` is missing. default: - attrs ? darwinConfig && pkgs.lib.attrByPath attrPath default attrs; + attrs ? darwinConfig && pkgs.lib.attrByPath attrPath default attrs.darwinConfig; /* A quick function to check if the optional NixOS system module is enabled.