From 62ab77a322514cfcd24d7cfd41c7e00c9a20f0b8 Mon Sep 17 00:00:00 2001 From: Kerstin Humm Date: Sun, 31 Oct 2021 13:39:46 +0100 Subject: nixos/borgbackup: specify systemd WorkingDirectory --- nixos/modules/services/backup/borgbackup.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/backup/borgbackup.nix b/nixos/modules/services/backup/borgbackup.nix index 220c571b927..b2147c1bbfc 100644 --- a/nixos/modules/services/backup/borgbackup.nix +++ b/nixos/modules/services/backup/borgbackup.nix @@ -152,6 +152,7 @@ let serviceConfig = { # The service's only task is to ensure that the specified path exists Type = "oneshot"; + WorkingDirectory = cfg.path; }; wantedBy = [ "multi-user.target" ]; }; -- cgit 1.4.1