nixos/bird-lg: Remove deprecation warnings

The deprecation warning has been in place for quite some time now, so it
should be safe to get rid of it and clean the module up a bit.

e1mo 6764561f 73b675b6

Changed files
+2 -15
nixos
modules
services
networking
+2 -15
nixos/modules/services/networking/bird-lg.nix
···
};
extraArgs = lib.mkOption {
-
type = with lib.types; either lines (listOf str);
+
type = with lib.types; listOf str;
default = [ ];
description = ''
Extra parameters documented [here](https://github.com/xddxdd/bird-lg-go#frontend).
···
};
extraArgs = lib.mkOption {
-
type = with lib.types; either lines (listOf str);
+
type = with lib.types; listOf str;
default = [ ];
description = ''
Extra parameters documented [here](https://github.com/xddxdd/bird-lg-go#proxy).
-
-
:::{.note}
-
Passing lines (plain strings) is deprecated in favour of passing lists of strings.
-
:::
'';
};
};
···
###### implementation
config = {
-
-
warnings =
-
lib.optional (cfg.frontend.enable && builtins.isString cfg.frontend.extraArgs) ''
-
Passing strings to `services.bird-lg.frontend.extraOptions' is deprecated. Please pass a list of strings instead.
-
''
-
++ lib.optional (cfg.proxy.enable && builtins.isString cfg.proxy.extraArgs) ''
-
Passing strings to `services.bird-lg.proxy.extraOptions' is deprecated. Please pass a list of strings instead.
-
'';
-
systemd.services = {
bird-lg-frontend = lib.mkIf cfg.frontend.enable {
enable = true;