From 65a53fe6f4db0a4cfb4a186545d00c4606835591 Mon Sep 17 00:00:00 2001 From: etwas Date: Tue, 14 Oct 2025 21:01:09 +0200 Subject: [PATCH] feat: restic additions & go back to normal agenix --- home/default.nix | 3 +-- home/essentials/default.nix | 1 + home/essentials/restic.nix | 18 +++++++++++------- home/misc_pkgs/packages.nix | 1 + 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/home/default.nix b/home/default.nix index 678ce3c..0305be9 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,9 +1,9 @@ { + config, pkgs, inputs, spicetify-nix, agenix, - agenix-rekey, ... }: { @@ -26,7 +26,6 @@ extraSpecialArgs = { inherit spicetify-nix; inherit agenix; - inherit agenix-rekey; }; users.etwas = { diff --git a/home/essentials/default.nix b/home/essentials/default.nix index 2dab1c9..9c34665 100644 --- a/home/essentials/default.nix +++ b/home/essentials/default.nix @@ -2,6 +2,7 @@ imports = [ ./git.nix ./keyring.nix + ./restic.nix ./ssh.nix ./zsh.nix ]; diff --git a/home/essentials/restic.nix b/home/essentials/restic.nix index 3652379..a467801 100644 --- a/home/essentials/restic.nix +++ b/home/essentials/restic.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ ... }: { services.restic = { enable = true; @@ -7,18 +7,22 @@ localbackup = { exclude = [ "/home/*/.cache/*" - "*venv*" + "/home/*/.local/share/libvirt/*" + "/home/*/.local/share/Steam/*" + "/home/*/.local/share/Trash/*" + "*/venv/*" + "*/.direnv/*" + "*/Android/*" ]; initialize = true; - passwordFile = config.age.secrets.restic-password.path; paths = [ "/home" ]; repository = "s3:https://s3.filmsli.de/restic-framework"; - environmentFile = '' - AWS_ACCESS_KEY_ID=XFRV1PZVN3W4OJMTTQRS - AWS_SECRET_ACCESS_KEY=${builtins.readFile config.age.secrets.restic-s3-key.path} - ''; + pruneOpts = [ + "--keep-daily 7" + "--keep-weekly 4" + ]; }; }; }; diff --git a/home/misc_pkgs/packages.nix b/home/misc_pkgs/packages.nix index fd1e523..683f35d 100644 --- a/home/misc_pkgs/packages.nix +++ b/home/misc_pkgs/packages.nix @@ -1,5 +1,6 @@ { pkgs, + agenix, ... }: {