mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-24 21:22:33 -05:00
add netbird to mesh
This commit is contained in:
parent
57bc326e76
commit
284c730809
4 changed files with 60 additions and 35 deletions
|
|
@ -3,15 +3,39 @@
|
|||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
sopsFolder = builtins.toString inputs.nix-secrets + "/sops";
|
||||
in {
|
||||
sops.secrets."tailscale-key" = {
|
||||
sopsFile = "${sopsFolder}/shared.yaml";
|
||||
in
|
||||
{
|
||||
sops.secrets = {
|
||||
"tailscale-key" = {
|
||||
sopsFile = "${sopsFolder}/shared.yaml";
|
||||
};
|
||||
"netbird-key" = {
|
||||
sopsFile = "${sopsFolder}/shared.yaml";
|
||||
owner = "netbird-blackbridge";
|
||||
group = "netbird-blackbridge";
|
||||
};
|
||||
};
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.tailscale;
|
||||
authKeyFile = config.sops.secrets."tailscale-key".path;
|
||||
};
|
||||
|
||||
services.netbird = {
|
||||
package = pkgs.unstable.netbird;
|
||||
|
||||
clients.blackbridge = {
|
||||
login = {
|
||||
enable = true;
|
||||
setupKeyFile = config.sops.secrets."netbird-key".path;
|
||||
};
|
||||
port = 51820;
|
||||
openFirewall = true;
|
||||
openInternalFirewall = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue