diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 13:38:01 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 13:38:01 +0100 |
commit | b53adfffd50440aec3d02ef49b5d0c55b2c82644 (patch) | |
tree | cf2e3fb6e466389b450a5ad1259b6413116af2f2 /hosts/vidhar/borg/default.nix | |
parent | b4e74d1ead7d0a7e5d5e502a58d70029673e2a77 (diff) | |
download | nixos-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.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 = { |