Loading nixos/modules/services/backup/automysqlbackup.nix +18 −3 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -26,6 +26,10 @@ let in { imports = [ (mkRenamedOptionModule [ "services" "automysqlbackup" "config" ] [ "services" "automysqlbackup" "settings" ]) ]; # interface options = { services.automysqlbackup = { Loading @@ -40,7 +44,7 @@ in ''; }; config = mkOption { settings = mkOption { type = with types; attrsOf (oneOf [ str int bool (listOf str) ]); default = {}; description = lib.mdDoc '' Loading Loading @@ -112,7 +116,18 @@ in services.mysql.ensureUsers = optional (config.services.mysql.enable && cfg.config.mysql_dump_host == "localhost") { name = user; ensurePermissions = { "*.*" = "SELECT, SHOW VIEW, TRIGGER, LOCK TABLES, EVENT"; }; ensurePermissions = { "*.*" = "SELECT, SHOW VIEW, TRIGGER, LOCK TABLES, EVENT"; # https://forums.mysql.com/read.php?10,668311,668315#msg-668315 "function sys.extract_table_from_file_name" = "execute"; "function sys.format_path" = "execute"; "function sys.format_statement" = "execute"; "function sys.extract_schema_from_file_name" = "execute"; "function sys.ps_thread_account" = "execute"; "function sys.format_time" = "execute"; "function sys.format_bytes" = "execute"; }; }; }; Loading Loading
nixos/modules/services/backup/automysqlbackup.nix +18 −3 Original line number Diff line number Diff line Loading @@ -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; Loading @@ -26,6 +26,10 @@ let in { imports = [ (mkRenamedOptionModule [ "services" "automysqlbackup" "config" ] [ "services" "automysqlbackup" "settings" ]) ]; # interface options = { services.automysqlbackup = { Loading @@ -40,7 +44,7 @@ in ''; }; config = mkOption { settings = mkOption { type = with types; attrsOf (oneOf [ str int bool (listOf str) ]); default = {}; description = lib.mdDoc '' Loading Loading @@ -112,7 +116,18 @@ in services.mysql.ensureUsers = optional (config.services.mysql.enable && cfg.config.mysql_dump_host == "localhost") { name = user; ensurePermissions = { "*.*" = "SELECT, SHOW VIEW, TRIGGER, LOCK TABLES, EVENT"; }; ensurePermissions = { "*.*" = "SELECT, SHOW VIEW, TRIGGER, LOCK TABLES, EVENT"; # https://forums.mysql.com/read.php?10,668311,668315#msg-668315 "function sys.extract_table_from_file_name" = "execute"; "function sys.format_path" = "execute"; "function sys.format_statement" = "execute"; "function sys.extract_schema_from_file_name" = "execute"; "function sys.ps_thread_account" = "execute"; "function sys.format_time" = "execute"; "function sys.format_bytes" = "execute"; }; }; }; Loading