nix/nixos/hosts/backups-rpi4/backup-script.nix
2024-05-08 08:02:08 +09:00

19 lines
601 B
Nix

{ pkgs, ... }:
let
rsync-data-vol = pkgs.writeScriptBin "rsync-data-vol" "${builtins.readFile ./scripts/rsync-data-vol.sh}";
rsync-media = pkgs.writeScriptBin "rsync-media" "${builtins.readFile ./scripts/rsync-media.sh}";
rsync-sysctl = pkgs.writeScriptBin "rsync-sysctl" "${builtins.readFile ./scripts/rsync-sysctl.sh}";
in {
environment.systemPackages = [
rsync-media
rsync-data-vol
rsync-sysctl
];
# Set up the secret for the password:
sops.secrets."gotify_token" = {
owner = "root";
sopsFile = ../../../secrets/hosts/backups-rpi4.yaml;
};
}