update to nixos-22.05 #2

Merged
nyanloutre merged 19 commits from update_22_05 into master 2022-07-07 19:08:34 +02:00
3 changed files with 5 additions and 7 deletions
Showing only changes of commit 592b02f911 - Show all commits

View File

@ -32,7 +32,10 @@
services.zfs = { services.zfs = {
autoSnapshot.enable = true; autoSnapshot.enable = true;
autoScrub.enable = true; autoScrub = {
enable = true;
interval = "monthly";
};
}; };
hardware.usbWwan.enable = true; hardware.usbWwan.enable = true;

View File

@ -7,7 +7,7 @@ in
services = { services = {
smartd = { smartd = {
enable = true; enable = true;
defaults.monitored = "-a -o on -s (S/../.././02|L/../../1/04)"; defaults.monitored = "-a -o on -s (S/../.././02|L/../15/./02)";
notifications.mail = { notifications.mail = {
enable = true; enable = true;
recipient = "paul@nyanlout.re"; recipient = "paul@nyanlout.re";

View File

@ -169,11 +169,6 @@ in
readWritePaths = [ "/var/lib/postfix/queue/maildrop" ]; readWritePaths = [ "/var/lib/postfix/queue/maildrop" ];
postHook = '' postHook = ''
${pkgs.zfs}/bin/zfs destroy loutrepool/var/postgresql@borgsnap ${pkgs.zfs}/bin/zfs destroy loutrepool/var/postgresql@borgsnap
if [[ $exitStatus == 0 ]]; then
${pkgs.rclone}/bin/rclone --config /mnt/secrets/rclone_loutre.conf sync -v $BORG_REPO BackupStorage:default
else
${backup_mail_alert}/bin/mail.sh
fi
''; '';
}; };
}; };