From cdade8e6c5ef4e02f9eaf7047248d00fae7fd805 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 14:08:29 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'hosts/vidhar/borg/default.nix') 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 }; }; - copyBorg = pkgs.stdenv.mkDerivation rec { + copyBorg = pkgs.stdenv.mkDerivation (let + packageOverrides = pkgs.callPackage ./pyprctl-packages.nix {}; + inpPython = pkgs.python39.override { inherit packageOverrides; }; + in rec { name = "copy"; src = ./copy.py; @@ -51,7 +54,7 @@ let buildInputs = with pkgs; [makeWrapper]; - python = pkgs.python39.withPackages (ps: with ps; [humanize tqdm dateutil xdg python-unshare halo]); + python = pkgs.python39.withPackages (ps: with ps; [humanize tqdm dateutil xdg python-unshare pyprctl halo]); buildPhase = '' substitute $src copy \ @@ -70,7 +73,7 @@ let wrapProgram $out/bin/copy \ --prefix PATH : ${makeBinPath (with pkgs; [utillinux borgbackup])} ''; - }; + }); in { config = { services.borgbackup.repos.jotnar = { -- cgit v1.2.3