audio services: use mkEnableOption (#18524)
This commit is contained in:
parent
7be55e7f71
commit
25a7ded89c
|
@ -21,13 +21,7 @@ in {
|
|||
|
||||
services.mopidy = {
|
||||
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
type = types.bool;
|
||||
description = ''
|
||||
Whether to enable Mopidy, a music player daemon.
|
||||
'';
|
||||
};
|
||||
enable = mkEnableOption "Mopidy, a music player daemon";
|
||||
|
||||
dataDir = mkOption {
|
||||
default = "/var/lib/mopidy";
|
||||
|
|
|
@ -12,11 +12,7 @@ in {
|
|||
|
||||
services.ympd = {
|
||||
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Whether to enable ympd, the MPD Web GUI.";
|
||||
};
|
||||
enable = mkEnableOption "ympd, the MPD Web GUI";
|
||||
|
||||
webPort = mkOption {
|
||||
type = types.string;
|
||||
|
|
Loading…
Reference in New Issue