2024-04-03 18:54:40 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
let
|
|
|
|
admins = import ./admins.nix;
|
|
|
|
robots = import ./robots.nix;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
flake = {
|
|
|
|
logins = {
|
2024-11-12 19:22:25 +00:00
|
|
|
admins = admins;
|
|
|
|
wireguardDevices =
|
2024-04-03 19:47:27 +00:00
|
|
|
lib.lists.foldl
|
2024-11-12 19:22:25 +00:00
|
|
|
(wireguardDevices: adminConfig: wireguardDevices ++ (if adminConfig ? "wireguardDevices" then adminConfig.wireguardDevices else [ ]))
|
|
|
|
[ ]
|
2024-04-03 19:47:27 +00:00
|
|
|
(lib.attrsets.attrValues admins);
|
2024-04-03 18:54:40 +00:00
|
|
|
robots.sshPubKeys = lib.attrsets.attrValues robots;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|