mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
feat: i forgor o:
This commit is contained in:
parent
0eb5e3bdd7
commit
15519ad70d
34 changed files with 552 additions and 265 deletions
|
|
@ -7,21 +7,16 @@
|
|||
controlPersist = "10m";
|
||||
hashKnownHosts = true;
|
||||
compression = true;
|
||||
/*TODO: revisit this
|
||||
matchBlocks =
|
||||
let
|
||||
common = {
|
||||
forwardAgent = true;
|
||||
extraOptions = {
|
||||
RemoteForward =
|
||||
"/run/user/1000/gnupg/S.gpg-agent /run/user/1000/gnupg/S.gpg-agent.extra";
|
||||
};
|
||||
port = 62954;
|
||||
};
|
||||
in
|
||||
(lib.foldAttrList (map
|
||||
(network:
|
||||
lib.mapAttrs (_: v: { hostname = v.domain; } // common) (lib.filterAttrs (_: v: v.enable) (lib.mapAttrs (_: v: v.network.addresses.${network}) meta.network.nodes.nixos))
|
||||
) [ "private" "public" ]));*/
|
||||
matchBlocks = lib.mapAttrs (host: data: {
|
||||
port = lib.head meta.networks.tailscale.member_configs.${host}.services.openssh.ports;
|
||||
hostname = data.ipv4;
|
||||
forwardAgent = true;
|
||||
extraOptions = {
|
||||
RemoteForward = (lib.concatStringsSep " " [
|
||||
"/run/user/1000/gnupg/S.gpg-agent"
|
||||
"/run/user/1000/gnupg/S.gpg-agent.extra"
|
||||
]);
|
||||
};
|
||||
}) meta.networks.tailscale.members;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue