start on netbird and dynamicDNS

This commit is contained in:
2025-02-16 17:36:41 -06:00
parent 06e9c0e8ae
commit 9aed1080fb
2 changed files with 113 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
{ config, lib, pkgs, ... }: {
options.sysconfig.opts = {
netbird.enable = lib.options.mkOption {
type = lib.types.bool;
default = false;
};
virtualization.netbird = {
enable = lib.options.mkOption {
type = lib.types.bool;
default = false;
};
};
};
config = {
services.netbird = {
enable = config.sysconfig.opts.netbird.enable;
};
environment.systemPackages = lib.mkIf config.sysconfig.opts.netbird.enable [ pkgs.netbird-ui ];
containers.netbird = lib.mkIf config.sysconfig.opts.virtualization.netbird.enable {
autoStart = true;
privateNetwork = true;
hostAddress = "192.168.100.10";
localAddress = "192.168.100.21";
bindMounts = {};
config = {
services.netbird = {
enable = true;
server = {
enable = true;
domain = "vpn.blunkall.us";
management = {
enable = true;
#dnsDomain = ".vpn";
enableNginx = true;
};
dashboard = {
enable = true;
enableNginx = true;
};
coturn = {
enable = true;
};
signal = {
enable = true;
enableNginx = true;
};
};
};
};
};
};
}