vanadium/restic: set up sgbk

This commit is contained in:
Primrose 2025-02-28 21:47:19 +01:00
parent 3e81eb5711
commit d70fa0a4fb
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
6 changed files with 43 additions and 0 deletions

View file

@ -53,6 +53,9 @@
four_pwd.file = ../../../secrets/four_pwd.age;
restic_four_pwd.file = ../../../secrets/restic_four_pwd.age;
sgbk_pwd.file = ../../../secrets/sgbk_pwd.age;
restic_sgbk_pwd.file = ../../../secrets/restic_sgbk_pwd.age;
two_pwd.file = ../../../secrets/two_pwd.age;
ltex_dict = {

View file

@ -41,6 +41,7 @@
environment.etc."crypttab".text = ''
four /dev/disk/by-uuid/f68b6704-670a-4050-b032-2d553070139a ${config.age.secrets.four_pwd.path} noauto
two /dev/disk/by-uuid/552234e0-0820-44d8-b7ac-2653076149a5 ${config.age.secrets.two_pwd.path} noauto
sgbk /dev/disk/by-uuid/21b5207e-c3cf-49da-b944-fb405ae1eee2 ${config.age.secrets.sgbk_pwd.path} noauto
'';
systemd.mounts = let
@ -56,6 +57,7 @@
in [
(bindToCryptDev "four")
(bindToCryptDev "two")
(bindToCryptDev "sgbk")
];
environment.systemPackages = [

View file

@ -36,6 +36,22 @@
inherit pruneOpts;
};
"sgbk" = {
paths = [
"/home/leana/Music"
"/home/leana/Documents"
"/home/leana/Calibre"
"/home/leana/Images"
];
timerConfig = null;
repository = "/mnt/sgbk/restic";
passwordFile = config.age.secrets.restic_sgbk_pwd.path;
inherit pruneOpts;
};
"two-to-four" = {
paths = ["/mnt/two"];