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,
|
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 = {
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./git.nix
|
./git.nix
|
||||||
./keyring.nix
|
./keyring.nix
|
||||||
|
./restic.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
'';
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
agenix,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue