Add netbird client to julius-framework
This commit is contained in:
parent
c9326284d3
commit
f15e8bb159
2 changed files with 23 additions and 1 deletions
|
|
@ -83,6 +83,9 @@
|
||||||
|
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs outputs username;
|
inherit inputs outputs username;
|
||||||
|
pkgs-unstable = import nixpkgs-unstable {
|
||||||
|
inherit system;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ inputs, outputs, config, pkgs, ... }:
|
{ inputs, outputs, config, pkgs, pkgs-unstable, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
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;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue