mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
lib/home-manager: fix has{Nixos,Darwin}ConfigAttr
This commit is contained in:
parent
32d28446e5
commit
802f78cea5
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user