Merge branch 'main' of github.com:DarkGuibrine/NixConfig
This commit is contained in:
@@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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,7 +1,7 @@
|
|||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./netbird/netbird.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options.mods = {
|
options.mods = {
|
||||||
|
|||||||
Reference in New Issue
Block a user