feat(user/deck): backups to faunus-ater using restic
This commit is contained in:
parent
0ba89f5303
commit
4c89574d36
|
@ -79,7 +79,6 @@ creation_rules:
|
|||
age:
|
||||
- *helix-texta
|
||||
- *murex-pecten
|
||||
- *polymita-picta
|
||||
- path_regex: secrets/users/marie/[^/]+\.yaml$
|
||||
key_groups:
|
||||
- pgp:
|
||||
|
@ -87,4 +86,10 @@ creation_rules:
|
|||
age:
|
||||
- *trochulus-hispidus
|
||||
- *murex-pecten
|
||||
- path_regex: secrets/users/deck/[^/]+\.yaml$
|
||||
key_groups:
|
||||
- pgp:
|
||||
- *malte
|
||||
age:
|
||||
- *polymita-picta
|
||||
|
||||
|
|
|
@ -58,11 +58,15 @@ in {
|
|||
nintendo.enable = true;
|
||||
};
|
||||
|
||||
# programs.hyprland = {
|
||||
# enable = true;
|
||||
# xwayland = {
|
||||
# enable = true;
|
||||
# };
|
||||
# };
|
||||
sops.secrets = let
|
||||
sopsFile = ../secrets/users/deck/secrets.yaml;
|
||||
owner = "deck";
|
||||
mode = "0400";
|
||||
in {
|
||||
restic-backup-deck = {
|
||||
inherit sopsFile owner mode;
|
||||
key = "restic-backup";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
52
secrets/users/deck/secrets.yaml
Normal file
52
secrets/users/deck/secrets.yaml
Normal file
|
@ -0,0 +1,52 @@
|
|||
restic-backup: ENC[AES256_GCM,data:ZZcPiA0fbXjyC0I226X9SSN1J/k+/8/NTswylKxXPQg=,iv:nUNYIv/xSJEUrTJNvuvWF08AbZqHOorzbikM1XGe4pM=,tag:3GefusGY3IuxC2D9PWLR9g==,type:str]
|
||||
sops:
|
||||
kms: []
|
||||
gcp_kms: []
|
||||
azure_kv: []
|
||||
hc_vault: []
|
||||
age:
|
||||
- recipient: age1c9pnv970vt2c88u3ra4zxnhz6j76la4nm3ddcuws9a6mfpnw43lspaud83
|
||||
enc: |
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB2SWtGNEp5ckRYSVhLTER3
|
||||
Q0V4d1ZCcWpDdUxud1ExR05EUHFsR25QZkZRCjJaUEZvWC8yeWF1bEZWKzkwMEkw
|
||||
VUJJbVFNbDBMVGEvUCtCU3pPa3Z6NlUKLS0tIC9KcU5NSlJhOGNDRDIvVHNHMHdG
|
||||
dS96cHRsbjFvSCtLTlErbndLVG9SYlUKgCEX/VFmoQN1a6wn0s5uGdRR7PKmDl9n
|
||||
mqRDHgUWgo+AQ7enJ7qJ+zdOnLqrogCraLX6nRDJv5CPMHWOSMFYHA==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
lastmodified: "2024-02-01T10:56:41Z"
|
||||
mac: ENC[AES256_GCM,data:CfNsydv+yS6IzJZRGmEvRuwZ0yGotf1pVGozDuKiiAdEH/94ht7zlh92XcKAFQMCLYfH3f03JEU0uYiJLThE7ryjVBQJRr8IZSKWlQ8Ryr/4T7gyWFd45ZQ2EporVqKptNQO0RjywKeeamDvYnSrFD5pXRV+d4MNCtyMrqrFvso=,iv:wu5QOEX7PAdLxdnHwtmOndPQFlmZs5zoN32mzdzFaqs=,tag:VMRjnEOd9/XxoOLMruOKKw==,type:str]
|
||||
pgp:
|
||||
- created_at: "2024-02-01T10:56:01Z"
|
||||
enc: |-
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
hQIMA1TPiPeBUmHHARAAzGuyamR7D/JWCTnZdqUtGoQqIFva15JjBGpdeY0RmSE3
|
||||
5Mv+SQXUgPwiOF80vXTkpGcSIoBu5IeRYMaIsqMyqxrg1fgkcEzcfYzVQXaHXzzl
|
||||
4e5k0vkLw7sUWQD3Aea03MbYBvEFWODOq/m6rKHeEuFjpabU4ffI5VsjdJF+6tCt
|
||||
v/NcJiuV8HQLxShgV7QXkQHaRH9JUIHDFp/dPyhyK9Yt25YGZeezwJPdLGDcyFu0
|
||||
W0PkPDXX637VxQy3XDZizulEgLTL+fMVX14acEKOK5UgG5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julJVnWhaQHof68dL+7sZO86pXJGvJC3LP5vdJH6QTtJY+DKS9zL2IE
|
||||
33rTHu8MG3MNgaRxpvrRN/BkSYhcpLME8rb8FRAyP9Q02HE/bwrTCvvqHYwjtdJe
|
||||
Aefyxl3hfMIhYQ50gXRgDhrfJX47SmyH2cCu7Um2/KL36uQ3zZEggvJonmRuj2qO
|
||||
dJPVy8iYORl5IHAbjT6x4nwltR8Gm3wCCUogwK9OR+2G7okfXtNe56xTmXoa3Q==
|
||||
=NqOk
|
||||
-----END PGP MESSAGE-----
|
||||
fp: D5FEA546C06B3AEC97EB7F5A437B3369EAE401C4
|
||||
unencrypted_suffix: _unencrypted
|
||||
version: 3.8.1
|
|
@ -28,6 +28,7 @@
|
|||
in {
|
||||
imports = [
|
||||
../modules/boilr.nix
|
||||
../modules/restic-backup.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
@ -60,10 +61,12 @@ in {
|
|||
];
|
||||
|
||||
# Configure restic backups
|
||||
# services.restic = {
|
||||
# enable = true;
|
||||
# paths = [];
|
||||
# };
|
||||
services.restic = {
|
||||
enable = true;
|
||||
paths = [
|
||||
"/home/deck/sdcard/Emulation/saves"
|
||||
];
|
||||
};
|
||||
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue