diff options
author | Matt Layher <mdlayher@gmail.com> | 2022-03-29 14:44:07 -0400 |
---|---|---|
committer | Cole Helbling <cole.e.helbling@outlook.com> | 2022-03-30 08:55:15 -0700 |
commit | bb22a2debcbb2695a4eb1be9b319952f17cfefb2 (patch) | |
tree | 8446317743969ffe1199ff19cb6c526a14555b68 /nixos/modules/services/backup | |
parent | ec0dd30e0bdd4088196892a8b6d07b09ca4eb1c1 (diff) |
nixos/zrepl: note about systemd unit, add snapshot test
Signed-off-by: Matt Layher <mdlayher@gmail.com>
Diffstat (limited to 'nixos/modules/services/backup')
-rw-r--r-- | nixos/modules/services/backup/zrepl.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/backup/zrepl.nix b/nixos/modules/services/backup/zrepl.nix index 4356479b6635e..73f5e4d9f6d76 100644 --- a/nixos/modules/services/backup/zrepl.nix +++ b/nixos/modules/services/backup/zrepl.nix @@ -38,6 +38,9 @@ in environment.etc."zrepl/zrepl.yml".source = configFile; systemd.packages = [ pkgs.zrepl ]; + + # Note that pkgs.zrepl copies and adapts the upstream systemd unit, and + # the fields defined here only override certain fields from that unit. systemd.services.zrepl = { requires = [ "local-fs.target" ]; wantedBy = [ "zfs.target" ]; |