diff options
Diffstat (limited to 'hosts/vidhar/borg/default.nix')
-rw-r--r-- | hosts/vidhar/borg/default.nix | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/hosts/vidhar/borg/default.nix b/hosts/vidhar/borg/default.nix index c404001b..37cdba8c 100644 --- a/hosts/vidhar/borg/default.nix +++ b/hosts/vidhar/borg/default.nix | |||
@@ -45,9 +45,8 @@ let | |||
45 | }; | 45 | }; |
46 | 46 | ||
47 | copyBorg = pkgs.stdenv.mkDerivation (let | 47 | copyBorg = pkgs.stdenv.mkDerivation (let |
48 | # packageOverrides = pkgs.callPackage ./pyprctl-packages.nix {}; | 48 | packageOverrides = pkgs.callPackage ./pyprctl-packages.nix {}; |
49 | # inpPython = pkgs.python39.override { inherit packageOverrides; }; | 49 | inpPython = pkgs.python39.override { inherit packageOverrides; }; |
50 | inpPython = pkgs.python39; | ||
51 | in rec { | 50 | in rec { |
52 | name = "copy"; | 51 | name = "copy"; |
53 | src = ./copy.py; | 52 | src = ./copy.py; |
@@ -56,7 +55,7 @@ let | |||
56 | 55 | ||
57 | buildInputs = with pkgs; [makeWrapper]; | 56 | buildInputs = with pkgs; [makeWrapper]; |
58 | 57 | ||
59 | python = inpPython.withPackages (ps: with ps; [humanize tqdm dateutil xdg python-unshare halo]); | 58 | python = inpPython.withPackages (ps: with ps; [humanize tqdm dateutil xdg python-unshare pyprctl halo]); |
60 | 59 | ||
61 | buildPhase = '' | 60 | buildPhase = '' |
62 | substitute $src copy \ | 61 | substitute $src copy \ |
@@ -111,12 +110,12 @@ in { | |||
111 | 110 | ||
112 | systemd.services = listToAttrs (map copyService [{ repo = "/srv/backup/borg/jotnar"; repoEscaped = "srv-backup-borg-jotnar"; }]); | 111 | systemd.services = listToAttrs (map copyService [{ repo = "/srv/backup/borg/jotnar"; repoEscaped = "srv-backup-borg-jotnar"; }]); |
113 | 112 | ||
114 | systemd.timers."copy-borg@srv-backup-borg-jotnar" = { | 113 | # systemd.timers."copy-borg@srv-backup-borg-jotnar" = { |
115 | wantedBy = ["multi-user.target"]; | 114 | # wantedBy = ["multi-user.target"]; |
116 | 115 | ||
117 | timerConfig = { | 116 | # timerConfig = { |
118 | OnCalendar = "*-*-* 00/4:00:00 Europe/Berlin"; | 117 | # OnCalendar = "*-*-* 00/4:00:00 Europe/Berlin"; |
119 | }; | 118 | # }; |
120 | }; | 119 | # }; |
121 | }; | 120 | }; |
122 | } | 121 | } |