refactor(treewide): enable modules based on host.type
This commit is contained in:
parent
779603c4cc
commit
25e02c034c
10 changed files with 39 additions and 67 deletions
|
|
@ -1,13 +1,12 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.systemModules.networking;
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
inherit (lib) mkIf;
|
||||
host = config.systemModules.host;
|
||||
in
|
||||
|
||||
{
|
||||
options.systemModules.networking.firewall = mkEnableOption "Enable networking firewall system modules";
|
||||
config = mkIf cfg.firewall {
|
||||
config = mkIf (host.type != "phone") {
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue