Compare commits
3 commits
2fb69448b2
...
210af3b949
Author | SHA1 | Date | |
---|---|---|---|
|
210af3b949 | ||
|
9367bd0267 | ||
|
cb0e49e5d6 |
1 changed files with 15 additions and 2 deletions
17
flake.nix
17
flake.nix
|
@ -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 {
|
||||||
|
@ -160,6 +159,14 @@
|
||||||
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 = "";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -314,7 +321,13 @@
|
||||||
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
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue