git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #59362 from matthiasbeyer/ympd-port-int

ympd service: Allow webPort to be int

commit7d363d46ba845abf5a5a2efc90b898abdeeb9d9a authormarkuskowa <markus.kowalewski@gmail.com> dateFri 12 Apr 2019, 20:59 (8 years ago) parent7edf2db31884f7
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 };