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