From 88ce12f849db15128aedce2574d38e09676b7b9d Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 4 Apr 2024 13:36:22 +0900 Subject: [PATCH] Update scripts --- nixos/hosts/backups-rpi4/backup-script.nix | 6 +++--- nixos/hosts/backups-rpi4/scripts/data-vol.sh | 1 - nixos/hosts/backups-rpi4/scripts/media.sh | 1 - nixos/hosts/backups-rpi4/scripts/sysctl.sh | 1 - 4 files changed, 3 insertions(+), 6 deletions(-) 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`