10 lines
199 B
Nix
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 $@
|
|
''
|