nix/nixos/hosts/backups-rpi4/backup-script.nix

19 lines
602 B
Nix
Raw Normal View History

2024-04-13 04:04:06 +02:00
{ pkgs, ... }:
2023-12-13 14:58:10 +01:00
let
2024-04-13 04:21:42 +02:00
rsync-data-vol = pkgs.writeScriptBin "rsync-data-vol" "${builtins.readFile ./scripts/rsync-data-vol.sh}";
2024-04-13 04:04:06 +02:00
rsync-backups = pkgs.writeScriptBin "rsync-backups" "${builtins.readFile ./scripts/rsync-media.sh}";
rsync-sysctl = pkgs.writeScriptBin "rsync-sysctl" "${builtins.readFile ./scripts/rsync-sysctl.sh}";
2024-04-04 05:47:30 +02:00
in {
2023-12-25 12:14:00 +01:00
environment.systemPackages = [
rsync-backups
rsync-data-vol
rsync-sysctl
2023-12-25 12:14:00 +01:00
];
2023-12-14 03:50:23 +01:00
# Set up the secret for the password:
sops.secrets."gotify_token" = {
owner = "root";
2024-01-12 07:03:47 +01:00
sopsFile = ../../../secrets/hosts/backups-rpi4.yaml;
2023-12-14 03:50:23 +01:00
};
2024-03-03 03:12:08 +01:00
}