diff --git a/modules/system/restic.nix b/modules/system/restic.nix new file mode 100644 index 0000000..0e60d04 --- /dev/null +++ b/modules/system/restic.nix @@ -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; + }; +}