nixos/warpgate: drop settings.config_provider

Actually it ceased to exist since 0.14.0
This commit is contained in:
Lemon Lam
2026-01-04 20:06:23 +08:00
parent 147c25bcef
commit 174c6333d1
+4 -11
View File
@@ -305,17 +305,6 @@ in
type = nullOr str;
};
};
config_provider = mkOption {
description = ''
Source of truth of users.
DO NOT change this, Warpgate only implemented database provider.
'';
default = "database";
type = enum [
"file"
"database"
];
};
};
};
default = { };
@@ -380,6 +369,10 @@ in
assertion = !((cfg.databaseUrlFile == null) && (cfg.settings.database_url == null));
message = "Either databaseUrlFile or settings.database_url must be set; Set the other to null.";
}
{
assertion = !(lib.hasAttr "config_provider" cfg.settings);
message = "`services.warpgate.settings.config_provider` is a legacy option that has been removed since 0.14.0. Please do not set this option.";
}
];
environment.systemPackages = [ cfg.package ];