]> Git — Sourcephile - julm/julm-nix.git/blob - nixpkgs/patches/syncoid/0001-nixos-sanoid-add-utilities-useful-to-syncoid.patch
nix: update nixpkgs
[julm/julm-nix.git] / nixpkgs / patches / syncoid / 0001-nixos-sanoid-add-utilities-useful-to-syncoid.patch
1 From e10ed8471e68d333f41d83b893a3a46659605ce6 Mon Sep 17 00:00:00 2001
2 From: Julien Moutinho <julm+nixpkgs@sourcephile.fr>
3 Date: Sat, 27 Nov 2021 02:42:20 +0100
4 Subject: [PATCH 1/3] nixos/sanoid: add utilities useful to syncoid
5
6 ---
7 nixos/modules/services/backup/sanoid.nix | 7 +++++++
8 1 file changed, 7 insertions(+)
9
10 diff --git a/nixos/modules/services/backup/sanoid.nix b/nixos/modules/services/backup/sanoid.nix
11 index 1baf08f4622f..cd3c1d4594c2 100644
12 --- a/nixos/modules/services/backup/sanoid.nix
13 +++ b/nixos/modules/services/backup/sanoid.nix
14 @@ -254,6 +254,13 @@ in
15 after = [ "zfs.target" ];
16 startAt = cfg.interval;
17 };
18 +
19 + # Put those packages in the global environment
20 + # so that syncoid can find them when targeting this host through ssh.
21 + environment.systemPackages = with pkgs; [
22 + lzop
23 + mbuffer
24 + ];
25 };
26
27 meta.maintainers = with lib.maintainers; [ lopsided98 ];
28 --
29 2.49.0
30