Make the restic key readable by the restic user

This commit is contained in:
Andreas Zweili 2022-11-21 08:35:49 +01:00
parent 44e1413012
commit 4b95485090
1 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,12 @@ let
repository = "/var/lib/restic-server";
in
{
age.secrets.resticKey.file = "${custom.inputs.self}/scrts/restic.key.age";
age.secrets.resticKey = {
file = "${custom.inputs.self}/scrts/restic.key.age";
mode = "440";
owner = "restic";
group = "restic";
};
environment.systemPackages = with pkgs; [
restic