Add netbird service to busch
This commit is contained in:
parent
04ba2761b5
commit
530695d941
2 changed files with 23 additions and 1 deletions
|
|
@ -120,6 +120,9 @@
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs outputs;
|
inherit inputs outputs;
|
||||||
|
pkgs-unstable = import nixpkgs-unstable {
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, outputs, config, lib, pkgs, ... }:
|
{ inputs, outputs, config, lib, pkgs, pkgs-unstable, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
|
|
@ -26,6 +26,25 @@
|
||||||
};
|
};
|
||||||
networking.hostName = "busch"; # Define your hostname.
|
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 = {
|
nix.settings = {
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://cache.saumon.network/proxmox-nixos"
|
"https://cache.saumon.network/proxmox-nixos"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue