Compare commits

...

No commits in common. "6f2d0b13c132d783d77061a08c4d1552f3e0f1dc" and "7a396ada3b20305552a9c44b7a06a09a9ef0cf56" have entirely different histories.

4 changed files with 10 additions and 15 deletions

View file

@ -27,7 +27,7 @@
};
networking = {
firewall.enable = false;
firewall.enable = true;
networkmanager = {
enable = true;
wifi.macAddress = "random";
@ -84,7 +84,6 @@
};
}];
};
localsend.openFirewall = true;
};
services = {

View file

@ -2,7 +2,7 @@
{
imports = [
./firewall-rules/localsend.nix
./localsend.nix
./networkmanager/auto-wlan.nix
./networkmanager/systemd-wait-online.nix
];

View file

@ -1,12 +0,0 @@
{ config, lib, ... }:
{
config = lib.mkIf config.programs.localsend.openFirewall {
networking.firewall = {
allowedTCPPorts = [ 53317 ];
allowedUDPPorts = [ 53317 ];
};
};
options.programs.localsend.openFirewall = lib.mkEnableOption "open the default ports for localsend";
}

View file

@ -0,0 +1,8 @@
{ ... }:
{
networking.firewall = {
allowedTCPPorts = [ 53317 ];
allowedUDPPorts = [ 53317 ];
};
}