refactor pkgs/lib -> lib, kw.fw -> network.firewall, ...

This commit is contained in:
kat witch 2021-08-13 21:17:56 +01:00
parent ce5c5f7f7c
commit 0e126e2a2e
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
32 changed files with 35 additions and 35 deletions

View file

@ -2,10 +2,10 @@
with lib;
let cfg = config.kw.fw;
let cfg = config.network.firewall;
in
{
options.kw.fw = {
options.network.firewall = {
public.tcp.ports = mkOption {
type = types.listOf types.port;
default = [ ];

View file

@ -2,7 +2,7 @@
let
fwcfg = config.networking.firewall;
cfg = config.kw.nftables;
cfg = config.network.nftables;
doDocker = config.virtualisation.docker.enable && cfg.generateDockerRules;
@ -82,7 +82,7 @@ let
in {
options = with lib; {
kw.nftables = {
network.nftables = {
enable = mkEnableOption "nftables firewall";
extraConfig = mkOption {