Add netbird service to busch

This commit is contained in:
JuliusFreudenberger 2026-04-27 23:29:22 +02:00
parent 04ba2761b5
commit 530695d941
2 changed files with 23 additions and 1 deletions

View file

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

View file

@ -1,4 +1,4 @@
{ inputs, outputs, config, lib, pkgs, ... }:
{ inputs, outputs, config, lib, pkgs, pkgs-unstable, ... }:
{
imports =
@ -26,6 +26,25 @@
};
networking.hostName = "busch"; # Define your hostname.
services.netbird = {
package = pkgs-unstable.netbird;
useRoutingFeatures = "both";
clients.wt0 = {
hardened = false;
login = {
enable = true;
setupKeyFile = (pkgs.writeText "setupKey" ''
A99F5508-D543-40B7-A31A-A8931B1AE246
'').outPath;
};
port = 51820;
environment = {
NB_MANAGEMENT_URL = "https://netbird.jfreudenberger.de";
};
};
};
systemd.services.${config.services.netbird.clients.wt0.service.name}.path = [ pkgs.shadow ];
nix.settings = {
substituters = [
"https://cache.saumon.network/proxmox-nixos"