From ee36768b0e6d162719c6d405967360f3e7d2f1f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 7 Sep 2023 22:31:02 +0300 Subject: [PATCH] minidlna: open up /home/motiejus/video --- hosts/vno1-oh2/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/vno1-oh2/configuration.nix b/hosts/vno1-oh2/configuration.nix index e79303e..f3cbadb 100644 --- a/hosts/vno1-oh2/configuration.nix +++ b/hosts/vno1-oh2/configuration.nix @@ -520,6 +520,14 @@ ExecStart = "${pkgs.systemd}/bin/systemctl restart caddy.service"; }; }; + + minidlna = { + serviceConfig = { + ProtectSystem = "strict"; + ProtectHome = "tmpfs"; + BindReadOnlyPaths = ["/home/motiejus/video"]; + }; + }; }; systemd.paths = {