nix/nixos/hosts/backups-rpi4/backup-script.nix
2024-04-04 12:47:30 +09:00

18 lines
579 B
Nix

{ config, lib, pkgs, ... }:
let
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 {
environment.systemPackages = [
rsync-backups
rsync-data-vol
rsync-sysctl
];
# Set up the secret for the password:
sops.secrets."gotify_token" = {
owner = "root";
sopsFile = ../../../secrets/hosts/backups-rpi4.yaml;
};
}