summaryrefslogtreecommitdiff
path: root/custom/borgbackup.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-12-17 14:35:01 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-12-17 14:35:01 +0100
commitea9dc62e25a8b263971486eaeabd5aea68179fe0 (patch)
tree9b85e4bb7efa15ec99a1ad8e0e45c11b47eb3608 /custom/borgbackup.nix
parent3e794ecc28744ec784f4bb68f9516a7a6a317de9 (diff)
downloadnixos-ea9dc62e25a8b263971486eaeabd5aea68179fe0.tar
nixos-ea9dc62e25a8b263971486eaeabd5aea68179fe0.tar.gz
nixos-ea9dc62e25a8b263971486eaeabd5aea68179fe0.tar.bz2
nixos-ea9dc62e25a8b263971486eaeabd5aea68179fe0.tar.xz
nixos-ea9dc62e25a8b263971486eaeabd5aea68179fe0.zip
Diffstat (limited to 'custom/borgbackup.nix')
-rw-r--r--custom/borgbackup.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/custom/borgbackup.nix b/custom/borgbackup.nix
index 005c6e76..c3fd8c8f 100644
--- a/custom/borgbackup.nix
+++ b/custom/borgbackup.nix
@@ -121,6 +121,8 @@ in {
121 bindsTo = ["network-online.target"]; 121 bindsTo = ["network-online.target"];
122 after = ["network-online.target"]; 122 after = ["network-online.target"];
123 123
124 path = with pkgs; [borgbackup];
125
124 script = concatStringsSep "\n" (mapAttrsToList (path: args: '' 126 script = concatStringsSep "\n" (mapAttrsToList (path: args: ''
125 borg prune \ 127 borg prune \
126 --prefix "${cfg.prefix}${path}" \ 128 --prefix "${cfg.prefix}${path}" \