From 9c1bfd1b240a5b1f1cd3537c0d22fc76eedf18f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 22 Sep 2023 10:05:06 +0300 Subject: [PATCH] add a share for snapshots --- modules/services/jakstpub/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/services/jakstpub/default.nix b/modules/services/jakstpub/default.nix index 6633eb5..ab7194f 100644 --- a/modules/services/jakstpub/default.nix +++ b/modules/services/jakstpub/default.nix @@ -53,6 +53,15 @@ in { "force user" = "jakstpub"; "force group" = "jakstpub"; }; + snapshots = { + path = cfg.dataDir + "/.zfs/snapshot"; + writeable = "no"; + public = "yes"; + "guest ok" = "yes"; + "read only" = "yes"; + "force user" = "jakstpub"; + "force group" = "jakstpub"; + }; }; };