Compare commits

..

No commits in common. "210af3b9499057e99ac9e41e681f5b56235cbc19" and "2fb69448b212f08492cb43da66f1f207181786f4" have entirely different histories.

View file

@ -95,6 +95,7 @@
"azure" "azure"
"b2" "b2"
]; ];
# default = "b2";
}; };
healthcheck = lib.options.mkOption { healthcheck = lib.options.mkOption {
type = lib.types.submodule { type = lib.types.submodule {
@ -159,14 +160,6 @@
paths = lib.options.mkOption { paths = lib.options.mkOption {
type = lib.types.listOf lib.types.str; type = lib.types.listOf lib.types.str;
}; };
preCommand = lib.options.mkOption {
type = lib.types.lines;
default = "";
};
postCommand = lib.options.mkOption {
type = lib.types.lines;
default = "";
};
}; };
} }
); );
@ -321,13 +314,7 @@
backup.excludes; backup.excludes;
paths = lib.strings.concatStringsSep " " backup.paths; paths = lib.strings.concatStringsSep " " backup.paths;
in in
'' "${package}/bin/restic backup${one-file-system}${excludes} ${paths}"
${backup.preCommand}
${package}/bin/restic backup${one-file-system}${excludes} ${paths}
${backup.postCommand}
''
) )
cfg.backups cfg.backups
); );