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-05-08 01:02:08 +02:00
|
|
|
rsync-media = pkgs.writeScriptBin "rsync-media" "${builtins.readFile ./scripts/rsync-media.sh}";
|
2024-04-13 04:04:06 +02:00
|
|
|
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 = [
|
2024-05-08 01:02:08 +02:00
|
|
|
rsync-media
|
2023-12-25 12:14:00 +01:00
|
|
|
rsync-data-vol
|
2023-12-30 14:11:44 +01:00
|
|
|
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
|
|
|
}
|
2024-04-30 01:19:12 +02:00
|
|
|
|