feat: restic additions & go back to normal agenix
This commit is contained in:
parent
ed556fb042
commit
65a53fe6f4
4 changed files with 14 additions and 9 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./git.nix
|
||||
./keyring.nix
|
||||
./restic.nix
|
||||
./ssh.nix
|
||||
./zsh.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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
pkgs,
|
||||
agenix,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue