summary refs log tree commit diff
path: root/nixos/modules/services/audio
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-09-09 02:45:53 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-09-10 18:30:14 +0200
commit009c1848c20078eb09e5e65bfda42fc9e9cb0462 (patch)
tree3d6991bc3339ee91cec692366e61ac4a2c1fe9ef /nixos/modules/services/audio
parent77cedff4e7d697f69c0c81e57d497f105eefc9e9 (diff)
downloadnixlib-009c1848c20078eb09e5e65bfda42fc9e9cb0462.tar
nixlib-009c1848c20078eb09e5e65bfda42fc9e9cb0462.tar.gz
nixlib-009c1848c20078eb09e5e65bfda42fc9e9cb0462.tar.bz2
nixlib-009c1848c20078eb09e5e65bfda42fc9e9cb0462.tar.lz
nixlib-009c1848c20078eb09e5e65bfda42fc9e9cb0462.tar.xz
nixlib-009c1848c20078eb09e5e65bfda42fc9e9cb0462.tar.zst
nixlib-009c1848c20078eb09e5e65bfda42fc9e9cb0462.zip
mpd service: add types to all options
Diffstat (limited to 'nixos/modules/services/audio')
-rw-r--r--nixos/modules/services/audio/mpd.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/services/audio/mpd.nix b/nixos/modules/services/audio/mpd.nix
index 5d5fef667941..13167b6affd7 100644
--- a/nixos/modules/services/audio/mpd.nix
+++ b/nixos/modules/services/audio/mpd.nix
@@ -33,6 +33,7 @@ in {
     services.mpd = {
 
       enable = mkOption {
+        type = types.bool;
         default = false;
         description = ''
           Whether to enable MPD, the music player daemon.
@@ -40,6 +41,7 @@ in {
       };
 
       musicDirectory = mkOption {
+        type = types.path;
         default = "${cfg.dataDir}/music";
         description = ''
           The directory where mpd reads music from.
@@ -47,6 +49,7 @@ in {
       };
 
       extraConfig = mkOption {
+        type = types.str;
         default = "";
         description = ''
           Extra directives added to to the end of MPD's configuration file,
@@ -56,6 +59,7 @@ in {
       };
 
       dataDir = mkOption {
+        type = types.path;
         default = "/var/lib/mpd";
         description = ''
           The directory where MPD stores its state, tag cache,
@@ -64,11 +68,13 @@ in {
       };
 
       user = mkOption {
+        type = types.str;
         default = "mpd";
         description = "User account under which MPD runs.";
       };
 
       group = mkOption {
+        type = types.str;
         default = "mpd";
         description = "Group account under which MPD runs.";
       };
@@ -76,6 +82,7 @@ in {
       network = {
 
         listenAddress = mkOption {
+          type = types.str;
           default = "any";
           description = ''
             This setting sets the address for the daemon to listen on. Careful attention
@@ -85,6 +92,7 @@ in {
         };
 
         port = mkOption {
+          type = types.int;
           default = 6600;
           description = ''
             This setting is the TCP port that is desired for the daemon to get assigned