Add escaped path to script
This commit is contained in:
parent
6089368745
commit
af496e418e
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user