fix restic acces to mail
This commit is contained in:
parent
5207af59d0
commit
6e1e9d1eb1
|
@ -31,7 +31,6 @@
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.sondell = import ./home/sondell.nix;
|
users.sondell = import ./home/sondell.nix;
|
||||||
# users.restic = import ./home/restic.nix;
|
|
||||||
users.root = import ./home/root.nix;
|
users.root = import ./home/root.nix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -56,7 +55,6 @@
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
./filebrowser.nix
|
./filebrowser.nix
|
||||||
./tail.nix
|
./tail.nix
|
||||||
./restic.nix
|
|
||||||
# ./ai.nix
|
# ./ai.nix
|
||||||
./ebooks.nix
|
./ebooks.nix
|
||||||
# ./matrix.nix TODO does not work atm, fixit
|
# ./matrix.nix TODO does not work atm, fixit
|
||||||
|
|
36
mail.nix
36
mail.nix
|
@ -9,25 +9,25 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
services.restic.backups = {
|
services.restic.backups = {
|
||||||
"mail" = {
|
"mail" = {
|
||||||
passwordFile = "/etc/nixos/.secrets/restic_pw";
|
passwordFile = "/etc/nixos/.secrets/restic_pw";
|
||||||
repository = "sftp:Glenn@nas:/home/back/mail/restic";
|
repository = "sftp:Glenn@nas:/home/back/mail/restic";
|
||||||
initialize = true;
|
initialize = true;
|
||||||
paths = [
|
paths = [
|
||||||
mailDirectory
|
mailDirectory
|
||||||
# dkimKeyDirectory
|
# dkimKeyDirectory
|
||||||
];
|
];
|
||||||
user = "sondell";
|
user = "root";
|
||||||
timerConfig.OnCalendar = "02:05";
|
timerConfig.OnCalendar = "02:05";
|
||||||
pruneOpts = [
|
pruneOpts = [
|
||||||
"--keep-daily 10"
|
"--keep-daily 10"
|
||||||
"--keep-weekly 5"
|
"--keep-weekly 5"
|
||||||
"--keep-monthly 12"
|
"--keep-monthly 12"
|
||||||
"--keep-yearly 75"
|
"--keep-yearly 75"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
mailserver = {
|
mailserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
inherit mailDirectory dkimKeyDirectory;
|
inherit mailDirectory dkimKeyDirectory;
|
||||||
|
|
Loading…
Reference in a new issue