From af496e418e6e936a7882eb67ce6693b2f1c0ed72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sun, 2 Jun 2024 23:15:23 +0200 Subject: [PATCH] Add escaped path to script --- backup.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.nix b/backup.nix index 6385ec4..ede80b9 100644 --- a/backup.nix +++ b/backup.nix @@ -1,6 +1,7 @@ { lib, config, pkgs, utils, ... }: let cfg = config.backup-helper; + escaped-path = utils.escapeSystemdPath "/etc/machine-id"; restic-wrapper = pkgs.writeShellApplication { name = "restic-wrapper"; runtimeInputs = [ @@ -14,10 +15,9 @@ let fi path="$1"; echo "Starting backup of $path"; - # restic backup "$path"; + # restic backup ${escaped-path}; ''; }; - escaped-path = utils.escapeSystemdPath "/etc/machine-id"; in { options.backup-helper.enable = lib.mkEnableOption "Enable backup-helper";