Compare commits

..

No commits in common. "c937ecd33cd9e99aa4a3228b4865073bd877f50d" and "b1cea27df05e19564e4a49344a78188ca7e0428f" have entirely different histories.

6 changed files with 15 additions and 14 deletions

View File

@ -75,11 +75,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1656754140,
"narHash": "sha256-8thJUtZWIimyBtkYQ0tdmmnH0yJvOaw1K5W3OgKc6/A=",
"lastModified": 1655096306,
"narHash": "sha256-3B3zBaQVLL956deZgmucouvkZroObQ4JKHzbIfFS9/c=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "09c32b0bda4db98d6454e910206188e85d5b04cc",
"rev": "a119e218ad27bea32057a3463e3694a61c9e3802",
"type": "github"
},
"original": {
@ -105,11 +105,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1656753965,
"narHash": "sha256-BCrB3l0qpJokOnIVc3g2lHiGhnjUi0MoXiw6t1o8H1E=",
"lastModified": 1655043425,
"narHash": "sha256-A+oT+aQGhW5lXy8H0cqBLsYtgcnT5glmGOXWQDcGw6I=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "0ea7a8f1b939d74e5df8af9a8f7342097cdf69eb",
"rev": "914ef51ffa88d9b386c71bdc88bffc5273c08ada",
"type": "github"
},
"original": {

View File

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

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ... }:
{ config, lib, pkgs, ... }:
{
services = {
@ -22,7 +22,7 @@
jellyfin = {
enable = true;
package = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.jellyfin;
package = pkgs.jellyfin;
};
navidrome = {

View File

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

View File

@ -169,6 +169,11 @@ in
readWritePaths = [ "/var/lib/postfix/queue/maildrop" ];
postHook = ''
${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
'';
};
};

View File

@ -300,7 +300,6 @@ in
postgresql = {
enable = true;
package = pkgs.postgresql_14;
settings = {
full_page_writes = false;
};