Loading nixos/modules/services/databases/ferretdb.nix +33 −7 Original line number Diff line number Diff line Loading @@ -19,8 +19,38 @@ in }; settings = lib.mkOption { type = lib.types.submodule { freeformType = with lib.types; attrsOf str; }; type = lib.types.submodule { freeformType = with lib.types; attrsOf str; options = { FERRETDB_HANDLER = lib.mkOption { type = lib.types.enum [ "sqlite" "pg" ]; default = "sqlite"; description = "Backend handler"; }; FERRETDB_SQLITE_URL = lib.mkOption { type = lib.types.str; default = "file:/var/lib/ferretdb/"; description = "SQLite URI (directory) for 'sqlite' handler"; }; FERRETDB_POSTGRESQL_URL = lib.mkOption { type = lib.types.str; default = "postgres://ferretdb@localhost/ferretdb?host=/run/postgresql"; description = "PostgreSQL URL for 'pg' handler"; }; FERRETDB_TELEMETRY = lib.mkOption { type = lib.types.enum [ "enable" "disable" ]; default = "disable"; description = '' Enable or disable basic telemetry. See <https://docs.ferretdb.io/telemetry/> for more information. ''; }; }; }; example = { FERRETDB_LOG_LEVEL = "warn"; FERRETDB_MODE = "normal"; Loading @@ -36,11 +66,7 @@ in config = lib.mkIf cfg.enable { services.ferretdb.settings = { FERRETDB_HANDLER = lib.mkDefault "sqlite"; FERRETDB_SQLITE_URL = lib.mkDefault "file:/var/lib/ferretdb/"; }; services.ferretdb.settings = { }; systemd.services.ferretdb = { description = "FerretDB"; Loading nixos/tests/ferretdb.nix +0 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,6 @@ with import ../lib/testing-python.nix { inherit system; }; services.ferretdb = { enable = true; settings.FERRETDB_HANDLER = "pg"; settings.FERRETDB_POSTGRESQL_URL = "postgres://ferretdb@localhost/ferretdb?host=/run/postgresql"; }; systemd.services.ferretdb.serviceConfig = { Loading Loading
nixos/modules/services/databases/ferretdb.nix +33 −7 Original line number Diff line number Diff line Loading @@ -19,8 +19,38 @@ in }; settings = lib.mkOption { type = lib.types.submodule { freeformType = with lib.types; attrsOf str; }; type = lib.types.submodule { freeformType = with lib.types; attrsOf str; options = { FERRETDB_HANDLER = lib.mkOption { type = lib.types.enum [ "sqlite" "pg" ]; default = "sqlite"; description = "Backend handler"; }; FERRETDB_SQLITE_URL = lib.mkOption { type = lib.types.str; default = "file:/var/lib/ferretdb/"; description = "SQLite URI (directory) for 'sqlite' handler"; }; FERRETDB_POSTGRESQL_URL = lib.mkOption { type = lib.types.str; default = "postgres://ferretdb@localhost/ferretdb?host=/run/postgresql"; description = "PostgreSQL URL for 'pg' handler"; }; FERRETDB_TELEMETRY = lib.mkOption { type = lib.types.enum [ "enable" "disable" ]; default = "disable"; description = '' Enable or disable basic telemetry. See <https://docs.ferretdb.io/telemetry/> for more information. ''; }; }; }; example = { FERRETDB_LOG_LEVEL = "warn"; FERRETDB_MODE = "normal"; Loading @@ -36,11 +66,7 @@ in config = lib.mkIf cfg.enable { services.ferretdb.settings = { FERRETDB_HANDLER = lib.mkDefault "sqlite"; FERRETDB_SQLITE_URL = lib.mkDefault "file:/var/lib/ferretdb/"; }; services.ferretdb.settings = { }; systemd.services.ferretdb = { description = "FerretDB"; Loading
nixos/tests/ferretdb.nix +0 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,6 @@ with import ../lib/testing-python.nix { inherit system; }; services.ferretdb = { enable = true; settings.FERRETDB_HANDLER = "pg"; settings.FERRETDB_POSTGRESQL_URL = "postgres://ferretdb@localhost/ferretdb?host=/run/postgresql"; }; systemd.services.ferretdb.serviceConfig = { Loading