2024-04-04 05:20:46 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2023-12-13 14:58:10 +01:00
|
|
|
let
|
2024-04-04 05:47:30 +02:00
|
|
|
rsync-backups = pkgs.writeScriptBin "rsync-backups" builtins.readFile ./scripts/media.sh;
|
|
|
|
rsync-data-vol = pkgs.writeScriptBin "rsync-data-vol" builtins.readFile ./scripts/data-vol.sh;
|
|
|
|
rsync-sysctl = pkgs.writeScriptBin "rsync-sysctl" builtins.readFile ./scripts/sysctl.sh;
|
|
|
|
in {
|
2023-12-25 12:14:00 +01:00
|
|
|
environment.systemPackages = [
|
|
|
|
rsync-backups
|
|
|
|
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
|
|
|
}
|