cleanup
This commit is contained in:
parent
9367bd0267
commit
210af3b949
1 changed files with 11 additions and 12 deletions
23
flake.nix
23
flake.nix
|
@ -95,7 +95,6 @@
|
|||
"azure"
|
||||
"b2"
|
||||
];
|
||||
# default = "b2";
|
||||
};
|
||||
healthcheck = lib.options.mkOption {
|
||||
type = lib.types.submodule {
|
||||
|
@ -161,14 +160,14 @@
|
|||
type = lib.types.listOf lib.types.str;
|
||||
};
|
||||
preCommand = lib.options.mkOption {
|
||||
type = lib.types.lines;
|
||||
default = "";
|
||||
type = lib.types.lines;
|
||||
default = "";
|
||||
};
|
||||
postCommand = lib.options.mkOption {
|
||||
type = lib.types.lines;
|
||||
default = "";
|
||||
};
|
||||
};
|
||||
postCommand = lib.options.mkOption {
|
||||
type = lib.types.lines;
|
||||
default = "";
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
|
@ -323,12 +322,12 @@
|
|||
paths = lib.strings.concatStringsSep " " backup.paths;
|
||||
in
|
||||
''
|
||||
${backup.preCommand}
|
||||
${backup.preCommand}
|
||||
|
||||
${package}/bin/restic backup${one-file-system}${excludes} ${paths}
|
||||
${package}/bin/restic backup${one-file-system}${excludes} ${paths}
|
||||
|
||||
${backup.postCommand}
|
||||
''
|
||||
${backup.postCommand}
|
||||
''
|
||||
)
|
||||
cfg.backups
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue