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