xin/bins/restic.nix
2023-06-14 10:44:58 -06:00

10 lines
199 B
Nix

{ pkgs }:
let resticBin = "${pkgs.restic}/bin/restic";
in ''
#!/usr/bin/env sh
export $(cat /run/secrets/restic_env_file)
${resticBin} --password-file /run/secrets/restic_password_file $@
''