xin/bins/restic.nix
2022-08-26 20:25:16 -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 $@
''