summaryrefslogtreecommitdiff
path: root/hosts/vidhar/borg/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-17 13:38:01 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-17 13:38:01 +0100
commitb53adfffd50440aec3d02ef49b5d0c55b2c82644 (patch)
treecf2e3fb6e466389b450a5ad1259b6413116af2f2 /hosts/vidhar/borg/default.nix
parentb4e74d1ead7d0a7e5d5e502a58d70029673e2a77 (diff)
downloadnixos-b53adfffd50440aec3d02ef49b5d0c55b2c82644.tar
nixos-b53adfffd50440aec3d02ef49b5d0c55b2c82644.tar.gz
nixos-b53adfffd50440aec3d02ef49b5d0c55b2c82644.tar.bz2
nixos-b53adfffd50440aec3d02ef49b5d0c55b2c82644.tar.xz
nixos-b53adfffd50440aec3d02ef49b5d0c55b2c82644.zip
vidhar: ...
Diffstat (limited to 'hosts/vidhar/borg/default.nix')
-rw-r--r--hosts/vidhar/borg/default.nix9
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 };
76in { 73in {
77 config = { 74 config = {
78 services.borgbackup.repos.jotnar = { 75 services.borgbackup.repos.jotnar = {