This commit is contained in:
Jeffrey C. Ollie 2023-03-30 15:50:55 -05:00
parent 9367bd0267
commit 210af3b949
No known key found for this signature in database
GPG key ID: F936E4DCB7E25F15

View file

@ -95,7 +95,6 @@
"azure" "azure"
"b2" "b2"
]; ];
# default = "b2";
}; };
healthcheck = lib.options.mkOption { healthcheck = lib.options.mkOption {
type = lib.types.submodule { type = lib.types.submodule {
@ -161,14 +160,14 @@
type = lib.types.listOf lib.types.str; type = lib.types.listOf lib.types.str;
}; };
preCommand = lib.options.mkOption { preCommand = lib.options.mkOption {
type = lib.types.lines; type = lib.types.lines;
default = ""; 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; paths = lib.strings.concatStringsSep " " backup.paths;
in 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 cfg.backups
); );