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";