diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-12 14:33:46 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-12 14:33:46 +0200 |
commit | 81b9ff8980a9a235b8915b5779ebc1d2a738a9a3 (patch) | |
tree | cd9d52274331a37f58048c836f8cf015e1f78c83 /nixops/modules/mpd.nix | |
parent | b92abb02739e04df9996f31dd4f30c793b190c7a (diff) | |
download | Nix-81b9ff8980a9a235b8915b5779ebc1d2a738a9a3.tar.gz Nix-81b9ff8980a9a235b8915b5779ebc1d2a738a9a3.tar.zst Nix-81b9ff8980a9a235b8915b5779ebc1d2a738a9a3.zip |
Use systemd RuntimeDirectory and StateDirectory entries to ensure runtime directory existence in apps
Diffstat (limited to 'nixops/modules/mpd.nix')
-rw-r--r-- | nixops/modules/mpd.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nixops/modules/mpd.nix b/nixops/modules/mpd.nix index bc8b8df..9903bdf 100644 --- a/nixops/modules/mpd.nix +++ b/nixops/modules/mpd.nix | |||
@@ -19,9 +19,7 @@ | |||
19 | ]; | 19 | ]; |
20 | networking.firewall.allowedTCPPorts = [ 6600 ]; | 20 | networking.firewall.allowedTCPPorts = [ 6600 ]; |
21 | users.users.mpd.extraGroups = [ "wwwrun" "keys" ]; | 21 | users.users.mpd.extraGroups = [ "wwwrun" "keys" ]; |
22 | system.activationScripts.mpd = '' | 22 | systemd.services.mpd.serviceConfig.RuntimeDirectory = "mpd"; |
23 | install -d -m 0755 -o mpd -g mpd /run/mpd | ||
24 | ''; | ||
25 | services.mpd = { | 23 | services.mpd = { |
26 | enable = true; | 24 | enable = true; |
27 | network.listenAddress = "any"; | 25 | network.listenAddress = "any"; |