properly refactored flame

This commit is contained in:
2025-09-28 11:23:10 -06:00
parent b4417a6acd
commit 6c7439894b
4 changed files with 6 additions and 29 deletions

View File

@@ -15,12 +15,7 @@ let
config.my.servers.drpp.enable
config.my.servers.plex-discord-bot.enable
];
filterNames =
file:
file != "base.nix"
&& file != "setup.nix"
&& file != "librewolf.nix"
&& file != "server-factory.nix";
filterNames = file: file != "base.nix" && file != "setup.nix" && file != "librewolf.nix";
autoImport =
dir:
builtins.readDir ./${dir}
@@ -36,11 +31,10 @@ in
++ autoImport "servers"
++ autoImport "services"
++ autoImport "shell"
++ autoImport "network"
++ [
./nix/build.nix
./users/nixremote.nix
./network/firewall.nix
./network/nginx.nix
];
options.my = {
localhost = lib.mkOption {
@@ -154,16 +148,5 @@ in
recommendedGzipSettings = true;
recommendedProxySettings = true;
};
networking.firewall =
let
ports = [
config.services.nginx.defaultHTTPListenPort
config.services.nginx.defaultSSLListenPort
];
in
{
allowedTCPPorts = ports;
allowedUDPPorts = ports;
};
};
}