git.iko.soy/typeable/nixpkgs
on master help sign in
ympd service: Allow webPort to be int

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>

commit31884f788ed315147417757bccf709b2f1ac424f authorMatthias Beyer <mail@beyermatthias.de> dateFri 12 Apr 2019, 17:53 (8 years ago) parentd0506be
1 file changed+2−2
nixos/modules/services/audio/ympd.nix+2−2
nixos/modules/services/audio/ympd.nix+2−2
@@ -15,7 +15,7 @@ in {
1515 enable = mkEnableOption "ympd, the MPD Web GUI";
1616
1717 webPort = mkOption {
18− type = types.string;
18+ type = types.either types.str types.port; # string for backwards compat
1919 default = "8080";
2020 description = "The port where ympd's web interface will be available.";
2121 example = "ssl://8080:/path/to/ssl-private-key.pem";
@@ -49,7 +49,7 @@ in {
4949 systemd.services.ympd = {
5050 description = "Standalone MPD Web GUI written in C";
5151 wantedBy = [ "multi-user.target" ];
52− serviceConfig.ExecStart = "${pkgs.ympd}/bin/ympd --host ${cfg.mpd.host} --port ${toString cfg.mpd.port} --webport ${cfg.webPort} --user nobody";
52+ serviceConfig.ExecStart = "${pkgs.ympd}/bin/ympd --host ${cfg.mpd.host} --port ${toString cfg.mpd.port} --webport ${toString cfg.webPort} --user nobody";
5353 };
5454
5555 };