mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 10:30:14 +01:00
21 lines
284 B
Nix
21 lines
284 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.my.server;
|
|
in {
|
|
options.my.server = {
|
|
enable = lib.mkEnableOption "server role";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
networking.firewall = {
|
|
enable = true;
|
|
allowedTCPPortRanges = [
|
|
];
|
|
};
|
|
};
|
|
}
|