mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
20 lines
501 B
Nix
20 lines
501 B
Nix
|
|
{
|
||
|
|
pkgs,
|
||
|
|
config,
|
||
|
|
...
|
||
|
|
}: {
|
||
|
|
environment.systemPackages = with pkgs; [
|
||
|
|
restic
|
||
|
|
];
|
||
|
|
|
||
|
|
age.secrets.restic-password.rekeyFile = ../../secrets/hosts/homelab/restic-password.age;
|
||
|
|
age.secrets.restic-env.rekeyFile = ../../secrets/hosts/homelab/restic-env.age;
|
||
|
|
|
||
|
|
services.restic.backups.server = {
|
||
|
|
repository = "b2:fireproof-backup";
|
||
|
|
timerConfig = null;
|
||
|
|
passwordFile = "${config.age.secrets.restic-password.path}";
|
||
|
|
environmentFile = "${config.age.secrets.restic-env.path}";
|
||
|
|
};
|
||
|
|
}
|