Merge branch 'main' of github.com:DarkGuibrine/NixConfig

This commit is contained in:
2026-05-16 02:06:17 -03:00
6 changed files with 37 additions and 1 deletions
+1
View File
@@ -44,6 +44,7 @@
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
./hosts/darkgui-vps/configuration.nix ./hosts/darkgui-vps/configuration.nix
./mods/nixos/nixos.nix
]; ];
}; };
}; };
+2
View File
@@ -22,6 +22,8 @@
cargo cargo
gcc gcc
netbird netbird
openssl
jq
## Git ## Git
gitFull gitFull
@@ -15,8 +15,10 @@
81 81
443 443
3000 3000
3478
5335 5335
7777 7777
8443
9000 9000
11000 11000
]; ];
@@ -25,8 +27,10 @@
allowedUDPPorts = [ allowedUDPPorts = [
config.services.tailscale.port config.services.tailscale.port
53 53
3478
5300 5300
7777 7777
8443
40000 40000
]; ];
extraCommands = '' extraCommands = ''
@@ -7,6 +7,11 @@
}: }:
{ {
mods = {
netbird.enable = true;
flakePath = "/etc/nixos";
};
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh = { services.openssh = {
enable = true; 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, ... }: { lib, ... }:
{ {
imports = [ imports = [
./netbird/netbird.nix
]; ];
options.mods = { options.mods = {