feat: restic additions & go back to normal agenix

This commit is contained in:
etwas 2025-10-14 21:01:09 +02:00
parent ed556fb042
commit 65a53fe6f4
Signed by: etwas
SSH key fingerprint: SHA256:bHhIeAdn/2k9jmOs6+u6ox98VYmoHUN3HfnpV2w8Ws0
4 changed files with 14 additions and 9 deletions

View file

@ -1,9 +1,9 @@
{ {
config,
pkgs, pkgs,
inputs, inputs,
spicetify-nix, spicetify-nix,
agenix, agenix,
agenix-rekey,
... ...
}: }:
{ {
@ -26,7 +26,6 @@
extraSpecialArgs = { extraSpecialArgs = {
inherit spicetify-nix; inherit spicetify-nix;
inherit agenix; inherit agenix;
inherit agenix-rekey;
}; };
users.etwas = { users.etwas = {

View file

@ -2,6 +2,7 @@
imports = [ imports = [
./git.nix ./git.nix
./keyring.nix ./keyring.nix
./restic.nix
./ssh.nix ./ssh.nix
./zsh.nix ./zsh.nix
]; ];

View file

@ -1,4 +1,4 @@
{ config, ... }: { ... }:
{ {
services.restic = { services.restic = {
enable = true; enable = true;
@ -7,18 +7,22 @@
localbackup = { localbackup = {
exclude = [ exclude = [
"/home/*/.cache/*" "/home/*/.cache/*"
"*venv*" "/home/*/.local/share/libvirt/*"
"/home/*/.local/share/Steam/*"
"/home/*/.local/share/Trash/*"
"*/venv/*"
"*/.direnv/*"
"*/Android/*"
]; ];
initialize = true; initialize = true;
passwordFile = config.age.secrets.restic-password.path;
paths = [ paths = [
"/home" "/home"
]; ];
repository = "s3:https://s3.filmsli.de/restic-framework"; repository = "s3:https://s3.filmsli.de/restic-framework";
environmentFile = '' pruneOpts = [
AWS_ACCESS_KEY_ID=XFRV1PZVN3W4OJMTTQRS "--keep-daily 7"
AWS_SECRET_ACCESS_KEY=${builtins.readFile config.age.secrets.restic-s3-key.path} "--keep-weekly 4"
''; ];
}; };
}; };
}; };

View file

@ -1,5 +1,6 @@
{ {
pkgs, pkgs,
agenix,
... ...
}: }:
{ {