nixos-configuration/modules/server.nix

21 lines
284 B
Nix
Raw Normal View History

2023-09-10 14:12:01 +02:00
{
config,
pkgs,
lib,
...
}: let
cfg = config.my.server;
in {
options.my.server = {
enable = lib.mkEnableOption "server role";
};
config = lib.mkIf cfg.enable {
networking.firewall = {
2023-09-11 19:16:26 +02:00
enable = true;
2023-09-10 14:12:01 +02:00
allowedTCPPortRanges = [
];
};
};
}