nixos/automysqlbackup: rename config option to settings

Changed files
+6 -2
nixos
modules
services
+6 -2
nixos/modules/services/backup/automysqlbackup.nix
···
let
inherit (lib) concatMapStringsSep concatStringsSep isInt isList literalExpression;
-
inherit (lib) mapAttrs mapAttrsToList mkDefault mkEnableOption mkIf mkOption optional types;
cfg = config.services.automysqlbackup;
pkg = pkgs.automysqlbackup;
···
in
{
# interface
options = {
services.automysqlbackup = {
···
'';
};
-
config = mkOption {
type = with types; attrsOf (oneOf [ str int bool (listOf str) ]);
default = {};
description = lib.mdDoc ''
···
let
inherit (lib) concatMapStringsSep concatStringsSep isInt isList literalExpression;
+
inherit (lib) mapAttrs mapAttrsToList mkDefault mkEnableOption mkIf mkOption mkRenamedOptionModule optional types;
cfg = config.services.automysqlbackup;
pkg = pkgs.automysqlbackup;
···
in
{
+
imports = [
+
(mkRenamedOptionModule [ "services" "automysqlbackup" "config" ] [ "services" "automysqlbackup" "settings" ])
+
];
+
# interface
options = {
services.automysqlbackup = {
···
'';
};
+
settings = mkOption {
type = with types; attrsOf (oneOf [ str int bool (listOf str) ]);
default = {};
description = lib.mdDoc ''