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