blob: 9242007ab0f431b687f80c98d2d60734715e5648 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ config, lib, ... }:
let
cfg = config.os.srv.firewall;
in
{
options.os.srv.firewall = {
enable = lib.mkEnableOption "enables the firewall";
};
config = lib.mkIf cfg.enable {
networking = {
nftables.enable = true;
firewall = {
enable = true;
allowedTCPPorts = [ ];
allowedUDPPorts = [ ];
};
};
};
}
|