Skip to content

Commit

Permalink
networking/mesh: mesh through zerotier
Browse files Browse the repository at this point in the history
  • Loading branch information
linyinfeng committed Oct 2, 2023
1 parent b221bb6 commit f3f35ba
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions nixos/profiles/networking/mesh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
lib,
...
}: let
cfg = config.networking.mesh;
hostName = config.networking.hostName;
data = config.lib.self.data;
filteredHost = lib.filterAttrs (_: hostData: (lib.length hostData.host_indices != 0)) data.hosts;
Expand Down Expand Up @@ -38,13 +39,13 @@ in {
rtt cost 1024;
rtt max 1024 ms;
'';
# extraInterfaces =
# lib.optionalAttrs config.services.zerotierone.enable {
# "${config.passthru.zerotierInterfaceName}" = {
# type = "tunnel";
# extraConfig = asCfg.mesh.bird.babelInterfaceConfig;
# };
# };
extraInterfaces =
lib.optionalAttrs config.services.zerotierone.enable {
"${config.passthru.zerotierInterfaceName}" = {
type = "tunnel";
extraConfig = cfg.bird.babelInterfaceConfig;
};
};
};
sops.secrets."ike_private_key_pem" = {
sopsFile = config.sops-file.terraform;
Expand Down

0 comments on commit f3f35ba

Please sign in to comment.