Update scripts

This commit is contained in:
albert 2024-04-04 13:36:22 +09:00
parent 887c118cb3
commit 88ce12f849
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
4 changed files with 3 additions and 6 deletions

View file

@ -1,8 +1,8 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let 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-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; rsync-sysctl = pkgs.writeScriptBin "rsync-sysctl" "${builtins.readFile ./scripts/sysctl.sh}";
in { in {
environment.systemPackages = [ environment.systemPackages = [
rsync-backups rsync-backups

View file

@ -1,4 +1,3 @@
#!/bin/env bash
# Send the gotify notification: # Send the gotify notification:
GOTIFY_TOKEN=`cat /var/run/secrets/gotify_token | head -n 1` GOTIFY_TOKEN=`cat /var/run/secrets/gotify_token | head -n 1`

View file

@ -1,4 +1,3 @@
#! /bin/env bash
# Send the gotify notification: # Send the gotify notification:
GOTIFY_TOKEN=`cat /var/run/secrets/gotify_token | head -n 1` GOTIFY_TOKEN=`cat /var/run/secrets/gotify_token | head -n 1`

View file

@ -1,4 +1,3 @@
#! /bin/env bash
# Send the gotify notification: # Send the gotify notification:
GOTIFY_TOKEN=`cat /var/run/secrets/gotify_token | head -n 1` GOTIFY_TOKEN=`cat /var/run/secrets/gotify_token | head -n 1`