fix networking
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
nixvim,
|
nixvim,
|
||||||
|
config,
|
||||||
user,
|
user,
|
||||||
agenix,
|
agenix,
|
||||||
...
|
...
|
||||||
@@ -24,9 +25,12 @@ in {
|
|||||||
nixPath = ["nixos-config=/home/${user}/.local/share/src/nixos-config:/etc/nixos"];
|
nixPath = ["nixos-config=/home/${user}/.local/share/src/nixos-config:/etc/nixos"];
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.docker = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
logDriver = "json-file";
|
trustedInterfaces = ["tailscale0"];
|
||||||
|
allowedUDPPorts = [config.services.tailscale.port];
|
||||||
|
allowedTCPPorts = [22];
|
||||||
|
checkReversePath = "loose";
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
@@ -37,7 +41,10 @@ in {
|
|||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
tailscale.enable = true;
|
tailscale = {
|
||||||
|
enable = true;
|
||||||
|
port = 41641;
|
||||||
|
};
|
||||||
adguardhome = {
|
adguardhome = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
Reference in New Issue
Block a user