diff --git a/nixos/hosts/backups-rpi4/backup-script.nix b/nixos/hosts/backups-rpi4/backup-script.nix index 814c3ebd..35eb9f12 100644 --- a/nixos/hosts/backups-rpi4/backup-script.nix +++ b/nixos/hosts/backups-rpi4/backup-script.nix @@ -1,8 +1,8 @@ { 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; + rsync-data-vol = pkgs.writeScriptBin "rsync-data-vol" "${builtins.readFile ./scripts/data-vol.sh}"; + rsync-backups = pkgs.writeScriptBin "rsync-backups" "${builtins.readFile ./scripts/media.sh}"; + rsync-sysctl = pkgs.writeScriptBin "rsync-sysctl" "${builtins.readFile ./scripts/sysctl.sh}"; in { environment.systemPackages = [ rsync-backups diff --git a/nixos/hosts/backups-rpi4/scripts/data-vol.sh b/nixos/hosts/backups-rpi4/scripts/data-vol.sh index 26fede68..0059dee8 100644 --- a/nixos/hosts/backups-rpi4/scripts/data-vol.sh +++ b/nixos/hosts/backups-rpi4/scripts/data-vol.sh @@ -1,4 +1,3 @@ -#!/bin/env bash # Send the gotify notification: GOTIFY_TOKEN=`cat /var/run/secrets/gotify_token | head -n 1` diff --git a/nixos/hosts/backups-rpi4/scripts/media.sh b/nixos/hosts/backups-rpi4/scripts/media.sh index a1a2eff3..dba17f2d 100644 --- a/nixos/hosts/backups-rpi4/scripts/media.sh +++ b/nixos/hosts/backups-rpi4/scripts/media.sh @@ -1,4 +1,3 @@ -#! /bin/env bash # Send the gotify notification: GOTIFY_TOKEN=`cat /var/run/secrets/gotify_token | head -n 1` diff --git a/nixos/hosts/backups-rpi4/scripts/sysctl.sh b/nixos/hosts/backups-rpi4/scripts/sysctl.sh index bd8a60aa..ab1337a3 100644 --- a/nixos/hosts/backups-rpi4/scripts/sysctl.sh +++ b/nixos/hosts/backups-rpi4/scripts/sysctl.sh @@ -1,4 +1,3 @@ -#! /bin/env bash # Send the gotify notification: GOTIFY_TOKEN=`cat /var/run/secrets/gotify_token | head -n 1`