diff --git a/nixos/modules/services/security/warpgate.nix b/nixos/modules/services/security/warpgate.nix index 7d6f2ca2596c..a9fb7ed438f6 100644 --- a/nixos/modules/services/security/warpgate.nix +++ b/nixos/modules/services/security/warpgate.nix @@ -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 ];