From f06edaf18b119da7bb301eebbf87971bbb9fb162 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Mon, 1 Jan 2024 09:56:03 +0100 Subject: [PATCH] lorri: unbreak due to too tight sandboxing lorri needs to be able to write to /run/user/uid for the socket, to its own cache directory ~/.cache/lorri and to the directory for gc roots. --- modules/services/lorri.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/services/lorri.nix b/modules/services/lorri.nix index 85b75682f..f782ff880 100644 --- a/modules/services/lorri.nix +++ b/modules/services/lorri.nix @@ -52,6 +52,12 @@ in { PrivateTmp = true; ProtectSystem = "strict"; ProtectHome = "read-only"; + ReadWritePaths = [ + # /run/user/1000 for the socket + "%t" + "/nix/var/nix/gcroots/per-user/%u" + ]; + CacheDirectory = [ "lorri" ]; Restart = "on-failure"; Environment = let path = with pkgs;