mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-20 01:38:02 +02:00
system: Change allowZolaPort option to allowDevPort
Makes things a bit more generic.
This commit is contained in:
parent
d209a08ff1
commit
b30ffbc858
@ -3,7 +3,7 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkOption mkEnableOption mkIf singleton;
|
inherit (lib) mkOption mkEnableOption mkIf singleton;
|
||||||
inherit (lib.types) nullOr str listOf;
|
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;
|
inherit (builtins) attrValues;
|
||||||
|
|
||||||
cfg = config.modules.system;
|
cfg = config.modules.system;
|
||||||
@ -57,7 +57,7 @@ in
|
|||||||
postgres = mkEnableOption "postgres database for containers";
|
postgres = mkEnableOption "postgres database for containers";
|
||||||
|
|
||||||
allowSRB2Port = mkEnableOption "port for srb2";
|
allowSRB2Port = mkEnableOption "port for srb2";
|
||||||
allowZolaPort = mkEnableOption "port for zola";
|
allowDevPort = mkEnableOption "port for development server";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
@ -203,8 +203,8 @@ in
|
|||||||
5029
|
5029
|
||||||
];
|
];
|
||||||
|
|
||||||
allowedTCPPorts = mkIf allowZolaPort [
|
allowedTCPPorts = mkIf allowDevPort [
|
||||||
1111
|
3000
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user