From 29a65ee80c474b57f4fce974ff5040996220f77e Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 18 Feb 2022 11:31:28 +0100 Subject: vidhar: copy-borg: setuid --- hosts/vidhar/borg/default.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'hosts/vidhar/borg/default.nix') 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 }; copyBorg = pkgs.stdenv.mkDerivation (let - # packageOverrides = pkgs.callPackage ./pyprctl-packages.nix {}; - # inpPython = pkgs.python39.override { inherit packageOverrides; }; - inpPython = pkgs.python39; + packageOverrides = pkgs.callPackage ./pyprctl-packages.nix {}; + inpPython = pkgs.python39.override { inherit packageOverrides; }; in rec { name = "copy"; src = ./copy.py; @@ -56,7 +55,7 @@ let buildInputs = with pkgs; [makeWrapper]; - python = inpPython.withPackages (ps: with ps; [humanize tqdm dateutil xdg python-unshare halo]); + python = inpPython.withPackages (ps: with ps; [humanize tqdm dateutil xdg python-unshare pyprctl halo]); buildPhase = '' substitute $src copy \ @@ -111,12 +110,12 @@ in { systemd.services = listToAttrs (map copyService [{ repo = "/srv/backup/borg/jotnar"; repoEscaped = "srv-backup-borg-jotnar"; }]); - systemd.timers."copy-borg@srv-backup-borg-jotnar" = { - wantedBy = ["multi-user.target"]; + # systemd.timers."copy-borg@srv-backup-borg-jotnar" = { + # wantedBy = ["multi-user.target"]; - timerConfig = { - OnCalendar = "*-*-* 00/4:00:00 Europe/Berlin"; - }; - }; + # timerConfig = { + # OnCalendar = "*-*-* 00/4:00:00 Europe/Berlin"; + # }; + # }; }; } -- cgit v1.2.3