mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
refactor pkgs/lib -> lib, kw.fw -> network.firewall, ...
This commit is contained in:
parent
ce5c5f7f7c
commit
0e126e2a2e
32 changed files with 35 additions and 35 deletions
|
|
@ -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 = [ ];
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue