From 83125ae472fc3ae0f2e50b544d5728d311b9e13c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Yule=20B=C3=A4dorf?= Date: Wed, 3 Apr 2024 21:17:38 +0200 Subject: [PATCH] logins: check for missing wireguard device attribute --- logins/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logins/default.nix b/logins/default.nix index 72352e8..3168d54 100644 --- a/logins/default.nix +++ b/logins/default.nix @@ -6,7 +6,7 @@ in { logins = { admins = lib.lists.foldl (logins: adminConfig: logins // { sshPubKeys = lib.attrsets.attrValues adminConfig.sshPubKeys; - wireguardDevices = adminConfig.wireguardDevices; + wireguardDevices = if adminConfig ? "wireguardDevices" then adminConfig.wireguardDevices else []; }) {} (lib.attrsets.attrValues admins); robots.sshPubKeys = lib.attrsets.attrValues robots; };