system: Change allowZolaPort option to allowDevPort

Makes things a bit more generic.
This commit is contained in:
Donovan Glover 2024-05-20 11:53:12 -04:00
parent d209a08ff1
commit b30ffbc858
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -3,7 +3,7 @@
let
inherit (lib) mkOption mkEnableOption mkIf singleton;
inherit (lib.types) nullOr str listOf;
inherit (cfg) username iHaveLotsOfRam hashedPassword mullvad allowSRB2Port allowZolaPort noRoot postgres;
inherit (cfg) username iHaveLotsOfRam hashedPassword mullvad allowSRB2Port allowDevPort noRoot postgres;
inherit (builtins) attrValues;
cfg = config.modules.system;
@ -57,7 +57,7 @@ in
postgres = mkEnableOption "postgres database for containers";
allowSRB2Port = mkEnableOption "port for srb2";
allowZolaPort = mkEnableOption "port for zola";
allowDevPort = mkEnableOption "port for development server";
};
config = {
@ -203,8 +203,8 @@ in
5029
];
allowedTCPPorts = mkIf allowZolaPort [
1111
allowedTCPPorts = mkIf allowDevPort [
3000
];
};
};