nixos-systems/modules/system/restic/default.nix
Eli Ribble da0954e737 Allow logic reuse in fieldseeker-sync deployment
This uses a system of patterns to deploy everything needed for
fieldseeker sync and standardizes the naming conventions.
2025-10-08 20:34:49 +00:00

28 lines
643 B
Nix

{ pkgs, lib, config, ... }:
with lib;
{
# Disable the stable channel version of restic and use our
# local copy of the unstable version so that we get access to stdin-from-command
disabledModules = [ "services/backup/restic.nix" ];
imports = [
./restic.nix
];
config = {
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;
};
};
}