This commit is contained in:
2026-05-16 02:04:06 -03:00
parent cbd838fe21
commit 7b49f5e6d2
6 changed files with 37 additions and 1 deletions
+1
View File
@@ -44,6 +44,7 @@
specialArgs = { inherit inputs; };
modules = [
./hosts/darkgui-vps/configuration.nix
./mods/nixos/nixos.nix
];
};
};
+2
View File
@@ -22,6 +22,8 @@
cargo
gcc
netbird
openssl
jq
## Git
gitFull
@@ -15,8 +15,10 @@
81
443
3000
3478
5335
7777
8443
9000
11000
];
@@ -25,8 +27,10 @@
allowedUDPPorts = [
config.services.tailscale.port
53
3478
5300
7777
8443
40000
];
extraCommands = ''
@@ -7,6 +7,11 @@
}:
{
mods = {
netbird.enable = true;
flakePath = "/etc/nixos";
};
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
+24
View File
@@ -0,0 +1,24 @@
{
config,
lib,
...
}:
{
options.mods.netbird = {
enable = lib.mkEnableOption "netbird";
};
config = lib.mkIf config.mods.netbird.enable {
services.netbird.clients.wt0 = {
login = {
enable = false;
setupKeyFile = "/path/to/your/setup-key";
};
port = 51821;
ui.enable = false;
openFirewall = true;
openInternalFirewall = true;
};
services.resolved.enable = true;
};
}
+1 -1
View File
@@ -1,7 +1,7 @@
{ lib, ... }:
{
imports = [
./nixos/netbird/netbird.nix
];
options.mods = {