Dev mode revamp
This commit is contained in:
@@ -117,6 +117,11 @@
|
||||
default = false;
|
||||
description = "Open ports in the firewall for the service.";
|
||||
};
|
||||
devModeDefault = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Whether new games start with Dev Mode (testing shortcuts) enabled.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
@@ -129,6 +134,9 @@
|
||||
|
||||
environment = {
|
||||
DATABASE_URL = "sqlite:///${cfg.databasePath}";
|
||||
# Unset means "local checkout" and defaults Dev Mode on, so the
|
||||
# service must always set it explicitly.
|
||||
PIRATS_DEV_MODE = lib.boolToString cfg.devModeDefault;
|
||||
};
|
||||
|
||||
serviceConfig = {
|
||||
|
||||
Reference in New Issue
Block a user