feat(desktop): add systemwide flatpak and enable polkit.
This commit is contained in:
parent
9b707cd3d2
commit
095e45e435
9 changed files with 128 additions and 1 deletions
37
modules/servers/general/restic.nix
Normal file
37
modules/servers/general/restic.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{config, ...}: let
|
||||
opts = {
|
||||
paths = [
|
||||
"/var/lib/private"
|
||||
];
|
||||
pruneOpts = [
|
||||
"--keep-last 10"
|
||||
"--keep-daily 7"
|
||||
"--keep-weekly 5"
|
||||
"--keep-monthly 12"
|
||||
];
|
||||
checkOpts = [
|
||||
"--read-data-subset=10%"
|
||||
"--with-cache"
|
||||
];
|
||||
};
|
||||
in {
|
||||
services.restic.backups = {
|
||||
local = {
|
||||
initialize = true;
|
||||
passwordFile = config.age.secrets.restic-server-local-pass.path;
|
||||
repository = "/var/lib/backup";
|
||||
paths = opts.paths;
|
||||
pruneOpts = opts.pruneOpts;
|
||||
checkOpts = opts.checkOpts;
|
||||
};
|
||||
server = {
|
||||
initialize = true;
|
||||
passwordFile = config.age.secrets.restic-server-pass.path;
|
||||
repositoryFile = config.age.secrets.restic-server-pass.path;
|
||||
environmentFile = config.age.secrets.restic-server-pass.path;
|
||||
paths = opts.paths;
|
||||
pruneOpts = opts.pruneOpts;
|
||||
checkOpts = opts.checkOpts;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue