nixos/sing-box: remove warning for long removed options
This commit is contained in:
@@ -41,27 +41,6 @@ in
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
assertions =
|
||||
let
|
||||
rules = cfg.settings.route.rules or [ ];
|
||||
in
|
||||
[
|
||||
{
|
||||
assertion = !lib.any (r: r ? source_geoip || r ? geoip) rules;
|
||||
message = ''
|
||||
Deprecated option `services.sing-box.settings.route.rules.*.{source_geoip,geoip}` is set.
|
||||
See https://sing-box.sagernet.org/migration/#migrate-geoip-to-rule-sets for migration instructions.
|
||||
'';
|
||||
}
|
||||
{
|
||||
assertion = !lib.any (r: r ? geosite) rules;
|
||||
message = ''
|
||||
Deprecated option `services.sing-box.settings.route.rules.*.geosite` is set.
|
||||
See https://sing-box.sagernet.org/migration/#migrate-geosite-to-rule-sets for migration instructions.
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
||||
# for polkit rules
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
services.dbus.packages = [ cfg.package ];
|
||||
|
||||
Reference in New Issue
Block a user