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"
|
"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
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue