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,
inputs,
spicetify-nix,
agenix,
agenix-rekey,
...
}:
{
@ -26,7 +26,6 @@
extraSpecialArgs = {
inherit spicetify-nix;
inherit agenix;
inherit agenix-rekey;
};
users.etwas = {

View file

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

View file

@ -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"
];
};
};
};

View file

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