From f5951c55f7e2df8163b69ab41132b4df34ed28e0 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Thu, 14 Apr 2016 13:38:47 +0200 Subject: [PATCH] nixos.locate: fix update-locatedb service failure It was failing with a `Read-only filesystem` failure due to the systemd service option `ReadWriteDirectories` not being correctly configured. Fixes #14132 --- nixos/modules/misc/locate.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/misc/locate.nix b/nixos/modules/misc/locate.nix index 5b560cedc623..27a0fa6cf3d4 100644 --- a/nixos/modules/misc/locate.nix +++ b/nixos/modules/misc/locate.nix @@ -88,7 +88,7 @@ in { serviceConfig.PrivateNetwork = "yes"; serviceConfig.NoNewPrivileges = "yes"; serviceConfig.ReadOnlyDirectories = "/"; - serviceConfig.ReadWriteDirectories = cfg.output; + serviceConfig.ReadWriteDirectories = dirOf cfg.output; }; systemd.timers.update-locatedb = mkIf cfg.enable