feat: netbird

This commit is contained in:
danny 2026-01-08 14:21:53 +08:00
parent 53b83b3471
commit ea118b7995
64 changed files with 1088 additions and 665 deletions

View file

@ -10,11 +10,11 @@ in
systemConf = {
inherit hostname username;
domain = "net.dn";
hyprland.enable = true;
# hyprland.enable = true;
niri.enable = true;
face = pkgs.fetchurl {
url = "https://files.net.dn/skydrive.jpg";
url = "https://git.dnywe.com/dachxy/skydrive-avatar/raw/branch/main/skydrive.jpg";
hash = "sha256-aMjl6VL1Zy+r3ElfFyhFOlJKWn42JOnAFfBXF+GPB/Q=";
curlOpts = "-k";
};
};
@ -22,9 +22,9 @@ in
../../modules/presets/basic.nix
./common
./games
./services
./sops
./utility
./network
];
users.users.root.openssh.authorizedKeys.keys = [

View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./netbird.nix
];
}

View file

@ -0,0 +1,17 @@
{ self, ... }:
let
serverCfg = self.nixosConfigurations.dn-server.config;
domain = serverCfg.services.netbird.server.domain;
in
{
services.netbird = {
clients.wt0 = {
openFirewall = true;
autoStart = true;
port = 51820;
environment = {
NB_MANAGEMENT_URL = "https://${domain}";
};
};
};
}

View file

@ -1,5 +0,0 @@
{
imports = [
./wireguard.nix
];
}

View file

@ -1,5 +0,0 @@
{
imports = [
../../../modules/wireguard.nix
];
}