Make isDarwin check more robust

This commit is contained in:
Matthias Putz 2023-02-20 13:47:48 +01:00
parent 2c56a93426
commit ec66ebe0ee

View file

@ -8,7 +8,7 @@
with lib; let with lib; let
cfg = config.age; 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 # we need at least rage 0.5.0 to support ssh keys
rage = rage =