Move base restic backup config into a restic module

This way its not duplicated in fieldseeker-sync
This commit is contained in:
Eli Ribble 2025-10-08 20:35:33 +00:00
parent da0954e737
commit fc936897c7

19
modules/system/restic.nix Normal file
View file

@ -0,0 +1,19 @@
{ config, inputs, lib, pkgs, ... }:
{
sops.secrets.restic-env = {
format = "yaml";
key = "backblaze";
group = "root";
mode = "0440";
owner = "root";
sopsFile = ../../secrets/restic.yaml;
};
sops.secrets.restic-password = {
format = "yaml";
key = "password";
group = "root";
mode = "0440";
owner = "root";
sopsFile = ../../secrets/restic.yaml;
};
}