diff options
author | Ricardo M. Correia <rcorreia@wizy.org> | 2016-04-14 13:38:47 +0200 |
---|---|---|
committer | Ricardo M. Correia <rcorreia@wizy.org> | 2016-04-14 13:51:17 +0200 |
commit | f5951c55f7e2df8163b69ab41132b4df34ed28e0 (patch) | |
tree | 52c035085b9623d8b80458e22adf0c7ea7934b47 /nixos | |
parent | 0f9268e52c03383ade24642836be1a4e74070df3 (diff) |
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
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/misc/locate.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/misc/locate.nix b/nixos/modules/misc/locate.nix index 5b560cedc623a..27a0fa6cf3d48 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 |