Skip to content

Commit

Permalink
lib/home-manager: fix has{Nixos,Darwin}ConfigAttr
Browse files Browse the repository at this point in the history
  • Loading branch information
foo-dogsquared committed Mar 8, 2024
1 parent 32d2844 commit 802f78c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/home-manager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 802f78c

Please sign in to comment.