From 6e1e9d1eb14d3960d6f22ba75ea77d62af487b85 Mon Sep 17 00:00:00 2001 From: glenn Date: Tue, 26 Nov 2024 12:45:00 +0100 Subject: [PATCH] fix restic acces to mail --- flake.nix | 2 -- mail.nix | 36 ++++++++++++++++++------------------ 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/flake.nix b/flake.nix index b43d58c..b3466f4 100644 --- a/flake.nix +++ b/flake.nix @@ -31,7 +31,6 @@ useGlobalPkgs = true; useUserPackages = true; users.sondell = import ./home/sondell.nix; - # users.restic = import ./home/restic.nix; users.root = import ./home/root.nix; }; }; @@ -56,7 +55,6 @@ ./jellyfin.nix ./filebrowser.nix ./tail.nix - ./restic.nix # ./ai.nix ./ebooks.nix # ./matrix.nix TODO does not work atm, fixit diff --git a/mail.nix b/mail.nix index 0ded7d2..1f6e4ed 100644 --- a/mail.nix +++ b/mail.nix @@ -9,25 +9,25 @@ in { ]; services.restic.backups = { - "mail" = { - passwordFile = "/etc/nixos/.secrets/restic_pw"; - repository = "sftp:Glenn@nas:/home/back/mail/restic"; - initialize = true; - paths = [ - mailDirectory - # dkimKeyDirectory - ]; - user = "sondell"; - timerConfig.OnCalendar = "02:05"; - pruneOpts = [ - "--keep-daily 10" - "--keep-weekly 5" - "--keep-monthly 12" - "--keep-yearly 75" - ]; - }; + "mail" = { + passwordFile = "/etc/nixos/.secrets/restic_pw"; + repository = "sftp:Glenn@nas:/home/back/mail/restic"; + initialize = true; + paths = [ + mailDirectory + # dkimKeyDirectory + ]; + user = "root"; + timerConfig.OnCalendar = "02:05"; + pruneOpts = [ + "--keep-daily 10" + "--keep-weekly 5" + "--keep-monthly 12" + "--keep-yearly 75" + ]; + }; }; - + mailserver = { enable = true; inherit mailDirectory dkimKeyDirectory;