tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/automysqlbackup: rename config option to settings
Aaron Andersen
2 years ago
55b3b702
a73e7383
+6
-2
1 changed file
expand all
collapse all
unified
split
nixos
modules
services
backup
automysqlbackup.nix
+6
-2
nixos/modules/services/backup/automysqlbackup.nix
···
3
3
let
4
4
5
5
inherit (lib) concatMapStringsSep concatStringsSep isInt isList literalExpression;
6
6
-
inherit (lib) mapAttrs mapAttrsToList mkDefault mkEnableOption mkIf mkOption optional types;
6
6
+
inherit (lib) mapAttrs mapAttrsToList mkDefault mkEnableOption mkIf mkOption mkRenamedOptionModule optional types;
7
7
8
8
cfg = config.services.automysqlbackup;
9
9
pkg = pkgs.automysqlbackup;
···
26
26
27
27
in
28
28
{
29
29
+
imports = [
30
30
+
(mkRenamedOptionModule [ "services" "automysqlbackup" "config" ] [ "services" "automysqlbackup" "settings" ])
31
31
+
];
32
32
+
29
33
# interface
30
34
options = {
31
35
services.automysqlbackup = {
···
40
44
'';
41
45
};
42
46
43
43
-
config = mkOption {
47
47
+
settings = mkOption {
44
48
type = with types; attrsOf (oneOf [ str int bool (listOf str) ]);
45
49
default = {};
46
50
description = lib.mdDoc ''