diff options
Diffstat (limited to 'hosts')
| -rwxr-xr-x | hosts/vidhar/borg/copy.py | 2 | ||||
| -rw-r--r-- | hosts/vidhar/borg/default.nix | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index 36798dc6..be890cf1 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py  | |||
| @@ -115,7 +115,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry): | |||
| 115 | for path in [chroot,upper,work]: | 115 | for path in [chroot,upper,work]: | 
| 116 | path.mkdir() | 116 | path.mkdir() | 
| 117 | subprocess.run(['mount', '-t', 'overlay', 'overlay', '-o', f'lowerdir=/,upperdir={upper},workdir={work}', chroot], check=True) | 117 | subprocess.run(['mount', '-t', 'overlay', 'overlay', '-o', f'lowerdir=/,upperdir={upper},workdir={work}', chroot], check=True) | 
| 118 | bindMounts = ['nix', 'run', 'run/secrets.d', 'proc', 'dev', 'sys', pathlib.Path(os.path.expanduser('~')).relative_to('/')] | 118 | bindMounts = ['nix', 'run', 'run/secrets.d', 'run/wrappers', 'proc', 'dev', 'sys', pathlib.Path(os.path.expanduser('~')).relative_to('/')] | 
| 119 | if os.environ.get('BORG_BASE_DIR'): | 119 | if os.environ.get('BORG_BASE_DIR'): | 
| 120 | bindMounts.append(pathlib.Path(os.environ['BORG_BASE_DIR']).relative_to('/')) | 120 | bindMounts.append(pathlib.Path(os.environ['BORG_BASE_DIR']).relative_to('/')) | 
| 121 | if not ":" in src_repo_path: | 121 | if not ":" in src_repo_path: | 
diff --git a/hosts/vidhar/borg/default.nix b/hosts/vidhar/borg/default.nix index de6a0854..1f9936ce 100644 --- a/hosts/vidhar/borg/default.nix +++ b/hosts/vidhar/borg/default.nix  | |||
| @@ -68,7 +68,7 @@ let | |||
| 68 | copy | 68 | copy | 
| 69 | 69 | ||
| 70 | wrapProgram $out/bin/copy \ | 70 | wrapProgram $out/bin/copy \ | 
| 71 | --prefix PATH : ${makeBinPath (with pkgs; [fuse utillinux borgbackup])} | 71 | --prefix PATH : ${makeBinPath (with pkgs; [utillinux borgbackup])}:${config.security.wrapperDir} | 
| 72 | ''; | 72 | ''; | 
| 73 | }); | 73 | }); | 
| 74 | in { | 74 | in { | 
