diff options
author | Aaron Andersen <aaron@fosslib.net> | 2023-05-10 19:59:39 -0400 |
---|---|---|
committer | Aaron Andersen <aaron@fosslib.net> | 2023-05-10 20:00:09 -0400 |
commit | 55b3b7029db47aef97b577e6833e080621a2b3f1 (patch) | |
tree | 743e59a214f1d23cdd2d6d937d7b5bf83b12ea1e /nixos/modules/services/backup | |
parent | a73e7383c0d20fcac4588c143ca2aa1efeaa7a79 (diff) |
nixos/automysqlbackup: rename config option to settings
Diffstat (limited to 'nixos/modules/services/backup')
-rw-r--r-- | nixos/modules/services/backup/automysqlbackup.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nixos/modules/services/backup/automysqlbackup.nix b/nixos/modules/services/backup/automysqlbackup.nix index 0b75c75f3d159..27bbff813b105 100644 --- a/nixos/modules/services/backup/automysqlbackup.nix +++ b/nixos/modules/services/backup/automysqlbackup.nix @@ -3,7 +3,7 @@ let inherit (lib) concatMapStringsSep concatStringsSep isInt isList literalExpression; - inherit (lib) mapAttrs mapAttrsToList mkDefault mkEnableOption mkIf mkOption optional types; + inherit (lib) mapAttrs mapAttrsToList mkDefault mkEnableOption mkIf mkOption mkRenamedOptionModule optional types; cfg = config.services.automysqlbackup; pkg = pkgs.automysqlbackup; @@ -26,6 +26,10 @@ let in { + imports = [ + (mkRenamedOptionModule [ "services" "automysqlbackup" "config" ] [ "services" "automysqlbackup" "settings" ]) + ]; + # interface options = { services.automysqlbackup = { @@ -40,7 +44,7 @@ in ''; }; - config = mkOption { + settings = mkOption { type = with types; attrsOf (oneOf [ str int bool (listOf str) ]); default = {}; description = lib.mdDoc '' |