lib/home-manager: fix has{Nixos,Darwin}ConfigAttr

This commit is contained in:
Gabriel Arazas 2024-03-08 16:40:49 +08:00
parent 32d28446e5
commit 802f78cea5
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -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.