Compare commits
No commits in common. "c937ecd33cd9e99aa4a3228b4865073bd877f50d" and "b1cea27df05e19564e4a49344a78188ca7e0428f" have entirely different histories.
c937ecd33c
...
b1cea27df0
12
flake.lock
generated
12
flake.lock
generated
@ -75,11 +75,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1656754140,
|
"lastModified": 1655096306,
|
||||||
"narHash": "sha256-8thJUtZWIimyBtkYQ0tdmmnH0yJvOaw1K5W3OgKc6/A=",
|
"narHash": "sha256-3B3zBaQVLL956deZgmucouvkZroObQ4JKHzbIfFS9/c=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "09c32b0bda4db98d6454e910206188e85d5b04cc",
|
"rev": "a119e218ad27bea32057a3463e3694a61c9e3802",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -105,11 +105,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1656753965,
|
"lastModified": 1655043425,
|
||||||
"narHash": "sha256-BCrB3l0qpJokOnIVc3g2lHiGhnjUi0MoXiw6t1o8H1E=",
|
"narHash": "sha256-A+oT+aQGhW5lXy8H0cqBLsYtgcnT5glmGOXWQDcGw6I=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0ea7a8f1b939d74e5df8af9a8f7342097cdf69eb",
|
"rev": "914ef51ffa88d9b386c71bdc88bffc5273c08ada",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -32,10 +32,7 @@
|
|||||||
|
|
||||||
services.zfs = {
|
services.zfs = {
|
||||||
autoSnapshot.enable = true;
|
autoSnapshot.enable = true;
|
||||||
autoScrub = {
|
autoScrub.enable = true;
|
||||||
enable = true;
|
|
||||||
interval = "monthly";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.usbWwan.enable = true;
|
hardware.usbWwan.enable = true;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, inputs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
jellyfin = {
|
jellyfin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.nixpkgs-unstable.legacyPackages.x86_64-linux.jellyfin;
|
package = pkgs.jellyfin;
|
||||||
};
|
};
|
||||||
|
|
||||||
navidrome = {
|
navidrome = {
|
||||||
|
@ -7,7 +7,7 @@ in
|
|||||||
services = {
|
services = {
|
||||||
smartd = {
|
smartd = {
|
||||||
enable = true;
|
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 = {
|
notifications.mail = {
|
||||||
enable = true;
|
enable = true;
|
||||||
recipient = "paul@nyanlout.re";
|
recipient = "paul@nyanlout.re";
|
||||||
|
@ -169,6 +169,11 @@ 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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -300,7 +300,6 @@ in
|
|||||||
|
|
||||||
postgresql = {
|
postgresql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.postgresql_14;
|
|
||||||
settings = {
|
settings = {
|
||||||
full_page_writes = false;
|
full_page_writes = false;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user