diff options
author | Langston Barrett <langston.barrett@gmail.com> | 2016-09-11 19:47:08 -0700 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-09-12 04:47:08 +0200 |
commit | 25a7ded89c7a996ac5b81735562f7c66c50cfd2e (patch) | |
tree | b1d146f8e447d0114e357cf41a3bf7589f7126c2 /nixos | |
parent | 7be55e7f717a22614ea93786b4d99a3706b9f2d6 (diff) | |
download | nixlib-25a7ded89c7a996ac5b81735562f7c66c50cfd2e.tar nixlib-25a7ded89c7a996ac5b81735562f7c66c50cfd2e.tar.gz nixlib-25a7ded89c7a996ac5b81735562f7c66c50cfd2e.tar.bz2 nixlib-25a7ded89c7a996ac5b81735562f7c66c50cfd2e.tar.lz nixlib-25a7ded89c7a996ac5b81735562f7c66c50cfd2e.tar.xz nixlib-25a7ded89c7a996ac5b81735562f7c66c50cfd2e.tar.zst nixlib-25a7ded89c7a996ac5b81735562f7c66c50cfd2e.zip |
audio services: use mkEnableOption (#18524)
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/audio/mopidy.nix | 8 | ||||
-rw-r--r-- | nixos/modules/services/audio/ympd.nix | 6 |
2 files changed, 2 insertions, 12 deletions
diff --git a/nixos/modules/services/audio/mopidy.nix b/nixos/modules/services/audio/mopidy.nix index 029b14ab4726..c0a0f0374294 100644 --- a/nixos/modules/services/audio/mopidy.nix +++ b/nixos/modules/services/audio/mopidy.nix @@ -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"; diff --git a/nixos/modules/services/audio/ympd.nix b/nixos/modules/services/audio/ympd.nix index fb8b868ed40a..d34c1c9d83cc 100644 --- a/nixos/modules/services/audio/ympd.nix +++ b/nixos/modules/services/audio/ympd.nix @@ -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; |