Add netbird client to julius-framework

This commit is contained in:
JuliusFreudenberger 2026-05-13 01:31:06 +02:00
parent c9326284d3
commit f15e8bb159
2 changed files with 23 additions and 1 deletions

View file

@ -83,6 +83,9 @@
specialArgs = {
inherit inputs outputs username;
pkgs-unstable = import nixpkgs-unstable {
inherit system;
};
};
modules = [

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ inputs, outputs, config, pkgs, ... }:
{ inputs, outputs, config, pkgs, pkgs-unstable, ... }:
{
imports =
@ -49,6 +49,25 @@
];
};
services.resolved.enable = true;
services.netbird = {
package = pkgs-unstable.netbird;
useRoutingFeatures = "client";
clients.wt0 = {
hardened = true;
login.enable = false;
port = 51820;
ui.enable = true;
openFirewall = true;
openInternalFirewall = true;
autoStart = false;
environment = {
NB_MANAGEMENT_URL = "https://netbird.jfreudenberger.de:443";
};
};
};
users.users.julius.extraGroups = [ "netbird-wt0" ];
hardware.enableRedistributableFirmware = true;
# Bootloader.