almost rm jakstIP

This commit is contained in:
2025-05-24 16:02:40 +00:00
parent 7252ba1582
commit 0e882bf94d
8 changed files with 24 additions and 64 deletions

View File

@@ -24,23 +24,10 @@
] (_: null);
in
lib.mapAttrs (_name: builtins.intersectAttrs sshAttrs) filtered;
extraConfig =
''
Host git.jakstys.lt
HostName ${myData.hosts."fwminex.jakst.vpn".jakstIP}
''
+ (lib.concatMapStringsSep "\n"
(host: ''
Host ${builtins.elemAt (lib.splitString "." host) 0}
HostName ${myData.hosts.${host}.jakstIP}
'')
(
builtins.attrNames (
lib.filterAttrs (name: props: name != "fra1-b.jakst.vpn" && props ? jakstIP) myData.hosts
)
)
);
extraConfig = ''
Host git.jakstys.lt
HostName fwminex.jakst.vpn
'';
};
};
}

View File

@@ -59,8 +59,9 @@ in
auth_providers = [
{ type = "homeassistant"; }
{
# TODO trust a subset
type = "trusted_networks";
trusted_networks = myData.subnets.motiejus.cidrs;
trusted_networks = myData.subnets.tailscale.cidr;
}
];
};