forked from pub-solar/infra
logins: check for missing wireguard device attribute
This commit is contained in:
parent
147ed44b9a
commit
83125ae472
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue