diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-04-12 17:53:50 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-04-12 18:17:10 +0200 |
commit | 31884f788ed315147417757bccf709b2f1ac424f (patch) | |
tree | 9d61bc8dea297235be7de3207e339cd490469da1 /nixos/modules/services/audio/ympd.nix | |
parent | d0506bed9f8218f7d09e0c3f439424ff64086011 (diff) | |
download | nixlib-31884f788ed315147417757bccf709b2f1ac424f.tar nixlib-31884f788ed315147417757bccf709b2f1ac424f.tar.gz nixlib-31884f788ed315147417757bccf709b2f1ac424f.tar.bz2 nixlib-31884f788ed315147417757bccf709b2f1ac424f.tar.lz nixlib-31884f788ed315147417757bccf709b2f1ac424f.tar.xz nixlib-31884f788ed315147417757bccf709b2f1ac424f.tar.zst nixlib-31884f788ed315147417757bccf709b2f1ac424f.zip |
ympd service: Allow webPort to be int
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'nixos/modules/services/audio/ympd.nix')
-rw-r--r-- | nixos/modules/services/audio/ympd.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/audio/ympd.nix b/nixos/modules/services/audio/ympd.nix index d34c1c9d83cc..919b76622510 100644 --- a/nixos/modules/services/audio/ympd.nix +++ b/nixos/modules/services/audio/ympd.nix @@ -15,7 +15,7 @@ in { enable = mkEnableOption "ympd, the MPD Web GUI"; webPort = mkOption { - type = types.string; + type = types.either types.str types.port; # string for backwards compat default = "8080"; description = "The port where ympd's web interface will be available."; example = "ssl://8080:/path/to/ssl-private-key.pem"; @@ -49,7 +49,7 @@ in { systemd.services.ympd = { description = "Standalone MPD Web GUI written in C"; wantedBy = [ "multi-user.target" ]; - serviceConfig.ExecStart = "${pkgs.ympd}/bin/ympd --host ${cfg.mpd.host} --port ${toString cfg.mpd.port} --webport ${cfg.webPort} --user nobody"; + serviceConfig.ExecStart = "${pkgs.ympd}/bin/ympd --host ${cfg.mpd.host} --port ${toString cfg.mpd.port} --webport ${toString cfg.webPort} --user nobody"; }; }; |