18 lines
446 B
Nix
18 lines
446 B
Nix
{ lib, ... }:
|
|
let
|
|
admins = import ./admins.nix;
|
|
robots = import ./robots.nix;
|
|
in
|
|
{
|
|
flake = {
|
|
logins = {
|
|
admins = admins;
|
|
wireguardDevices = lib.lists.foldl (
|
|
wireguardDevices: adminConfig:
|
|
wireguardDevices ++ (if adminConfig ? "wireguardDevices" then adminConfig.wireguardDevices else [ ])
|
|
) [ ] (lib.attrsets.attrValues admins);
|
|
robots.sshPubKeys = lib.attrsets.attrValues robots;
|
|
};
|
|
};
|
|
}
|