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