Merge pull request #156 from mputz86/main

Make isDarwin check more robust
This commit is contained in:
Ryan Mulligan 2023-02-20 06:45:27 -08:00 committed by GitHub
commit 53da86e976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 =