From b4756fe0c473f40f337c2c7d1059a5de5d47e181 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Thu, 10 Sep 2020 16:51:28 +0300 Subject: nixos/mpd: Mention in /etc/mpd.conf it was autogenerated --- nixos/modules/services/audio/mpd.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/services/audio/mpd.nix b/nixos/modules/services/audio/mpd.nix index 9e77ee85b89..ba20b1b98d9 100644 --- a/nixos/modules/services/audio/mpd.nix +++ b/nixos/modules/services/audio/mpd.nix @@ -11,6 +11,10 @@ let cfg = config.services.mpd; mpdConf = pkgs.writeText "mpd.conf" '' + # This file was automatically generated by NixOS. Edit mpd's configuration + # via NixOS' configuration.nix, as this file will be rewritten upon mpd's + # restart. + music_directory "${cfg.musicDirectory}" playlist_directory "${cfg.playlistDirectory}" ${lib.optionalString (cfg.dbFile != null) '' -- cgit 1.4.1