mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
feat: cleaned up secrets and tested restic
This commit is contained in:
parent
8b75074f8b
commit
60c469ee7f
3 changed files with 28 additions and 38 deletions
|
|
@ -9,7 +9,7 @@ let
|
|||
inherit (flake.config.people) user0;
|
||||
envFile = "backblaze/env";
|
||||
repoFile = "backblaze/repo";
|
||||
passFile = "restic-pass";
|
||||
passFile = "restic/pass";
|
||||
in
|
||||
{
|
||||
services.restic = {
|
||||
|
|
@ -25,20 +25,20 @@ in
|
|||
};
|
||||
paths =
|
||||
let
|
||||
instanceHelper = instance: instances.${instance}.mntPaths.path0;
|
||||
inst = instance: instances.${instance}.mntPaths.path0;
|
||||
in
|
||||
[
|
||||
"/home/${user0}/.ssh"
|
||||
(instanceHelper "firefly-iii")
|
||||
(instanceHelper "forgejo")
|
||||
(instanceHelper "mastodon")
|
||||
(instanceHelper "opencloud")
|
||||
(instanceHelper "minecraft0")
|
||||
(instanceHelper "minecraft1")
|
||||
(instanceHelper "vaultwarden")
|
||||
((instanceHelper "jellyfin") + "/cache")
|
||||
((instanceHelper "jellyfin") + "/data")
|
||||
((instanceHelper "jellyfin") + "/media/music")
|
||||
(inst "firefly-iii")
|
||||
(inst "forgejo")
|
||||
(inst "mastodon")
|
||||
(inst "opencloud")
|
||||
(inst "minecraft0")
|
||||
(inst "minecraft1")
|
||||
(inst "vaultwarden")
|
||||
((inst "jellyfin") + "/cache")
|
||||
((inst "jellyfin") + "/data")
|
||||
((inst "jellyfin") + "/media/music")
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
@ -63,18 +63,4 @@ in
|
|||
]
|
||||
);
|
||||
};
|
||||
|
||||
environment = {
|
||||
variables = {
|
||||
# AWS_ACCESS_KEY_ID = "";
|
||||
# AWS_SECRET_ACCESS_KEY = "";
|
||||
# RESTIC_PASSWORD_FILE = "pass.txt";
|
||||
# RESTIC_REPOSITORY = "";
|
||||
};
|
||||
systemPackages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
restic
|
||||
;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue