Make isDarwin check more robust

This commit is contained in:
Matthias Putz 2023-02-20 13:47:48 +01:00
parent 2c56a93426
commit ec66ebe0ee
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
with lib; let
cfg = config.age;
isDarwin = builtins.hasAttr "darwinConfig" options.environment;
isDarwin = lib.attrsets.hasAttrByPath ["environment" "darwinConfig"] options;
# we need at least rage 0.5.0 to support ssh keys
rage =