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
services.tailscale = {
enable = true;
extraUpFlags = [
"--exit-node-allow-lan-access=true"
"--ssh"
"--accept-dns=true"
];
mods = {
netbird.enable = true;
tailscale.enable = true;
flakePath = "/etc/nixos";
};
networking.nftables.enable = true;
networking.firewall = {
enable = true;
@@ -9,6 +9,7 @@
mods = {
netbird.enable = true;
tailscale.enable = true;
flakePath = "/etc/nixos";
};
+1
View File
@@ -2,6 +2,7 @@
{
imports = [
./netbird/netbird.nix
./tailscale/tailscale.nix
];
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"
];
};
};
}