summaryrefslogtreecommitdiff
path: root/hosts/vidhar/borg/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/vidhar/borg/default.nix')
-rw-r--r--hosts/vidhar/borg/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/hosts/vidhar/borg/default.nix b/hosts/vidhar/borg/default.nix
index 170ef65d..71c0da26 100644
--- a/hosts/vidhar/borg/default.nix
+++ b/hosts/vidhar/borg/default.nix
@@ -43,7 +43,10 @@ let
43 }; 43 };
44 }; 44 };
45 45
46 copyBorg = pkgs.stdenv.mkDerivation rec { 46 copyBorg = pkgs.stdenv.mkDerivation (let
47 packageOverrides = pkgs.callPackage ./pyprctl-packages.nix {};
48 inpPython = pkgs.python39.override { inherit packageOverrides; };
49 in rec {
47 name = "copy"; 50 name = "copy";
48 src = ./copy.py; 51 src = ./copy.py;
49 52
@@ -51,7 +54,7 @@ let
51 54
52 buildInputs = with pkgs; [makeWrapper]; 55 buildInputs = with pkgs; [makeWrapper];
53 56
54 python = pkgs.python39.withPackages (ps: with ps; [humanize tqdm dateutil xdg python-unshare halo]); 57 python = pkgs.python39.withPackages (ps: with ps; [humanize tqdm dateutil xdg python-unshare pyprctl halo]);
55 58
56 buildPhase = '' 59 buildPhase = ''
57 substitute $src copy \ 60 substitute $src copy \
@@ -70,7 +73,7 @@ let
70 wrapProgram $out/bin/copy \ 73 wrapProgram $out/bin/copy \
71 --prefix PATH : ${makeBinPath (with pkgs; [utillinux borgbackup])} 74 --prefix PATH : ${makeBinPath (with pkgs; [utillinux borgbackup])}
72 ''; 75 '';
73 }; 76 });
74in { 77in {
75 config = { 78 config = {
76 services.borgbackup.repos.jotnar = { 79 services.borgbackup.repos.jotnar = {