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

This commit is contained in:
2026-05-16 02:38:10 -03:00
4 changed files with 29 additions and 8 deletions
+6 -8
View File
@@ -7,15 +7,13 @@
}: }:
{ {
## tailscale mods = {
services.tailscale = { netbird.enable = true;
enable = true; tailscale.enable = true;
extraUpFlags = [ flakePath = "/etc/nixos";
"--exit-node-allow-lan-access=true"
"--ssh"
"--accept-dns=true"
];
}; };
networking.nftables.enable = true; networking.nftables.enable = true;
networking.firewall = { networking.firewall = {
enable = true; enable = true;
@@ -9,6 +9,7 @@
mods = { mods = {
netbird.enable = true; netbird.enable = true;
tailscale.enable = true;
flakePath = "/etc/nixos"; flakePath = "/etc/nixos";
}; };
+1
View File
@@ -2,6 +2,7 @@
{ {
imports = [ imports = [
./netbird/netbird.nix ./netbird/netbird.nix
./tailscale/tailscale.nix
]; ];
options.mods = { options.mods = {
+21
View File
@@ -0,0 +1,21 @@
{
config,
lib,
...
}:
{
options.mods.tailscale = {
enable = lib.mkEnableOption "tailscale";
};
config = lib.mkIf config.mods.tailscale.enable {
services.tailscale = {
enable = true;
extraUpFlags = [
"--exit-node-allow-lan-access=true"
"--ssh"
"--accept-dns=true"
];
};
};
}