add more mods

This commit is contained in:
2026-05-16 02:12:10 -03:00
parent 135f85f936
commit d315f016d2
5 changed files with 114 additions and 93 deletions
+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"
];
};
};
}