From ec66ebe0ee94bb6534a94d29cc48fefa26f94551 Mon Sep 17 00:00:00 2001 From: Matthias Putz Date: Mon, 20 Feb 2023 13:47:48 +0100 Subject: [PATCH] Make isDarwin check more robust --- modules/age.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/age.nix b/modules/age.nix index c33fb9c..d38e8de 100644 --- a/modules/age.nix +++ b/modules/age.nix @@ -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 =