anchor.diff:    };
   
     services.ympd = {
  -    enable = false;
  -    mpd.port = 6700;
  +    enable = true;
  +    mpd.port = mpd_port;
       webPort = "6601";
     };
   
     services.mpd = {
  -    enable = false;
  +    enable = if mpd_mopidy == "mpd" then true else false;
       user = "siddharthist";
       group = "siddharthist";
  -    musicDirectory = "/home/siddharthist/Dropbox/langston/music";
  +    musicDirectory = music_dir;
       dataDir = "/home/siddharthist/Dropbox/langston/archive/backup/mpd";
   
  -    network.port = 6700;
  +    network.port = mpd_port;
   
  -    # use aplay -l to find hw:card,device tuple
  -    extraConfig = ''
  -      audio_output {
  -        type "alsa"
  -        name "usb sound card"
  -        device "hw:0,0"
  -      }
  -    '';
  +    # use this to find hw:card,device tuple:
  +    # nix-shell -p alsaUtils --pure --run "aplay -l"
  +    # extraConfig = ''
  +    #   audio_output {
  +    #     type "alsa"
  +    #     name "usb sound card"
  +    #     device "hw:1,0"
  +    #   }
  +    # '';
     };
   
     # sound.enableMediaKeys = true; # sxhkd takes care of this
  
positive.code:   ];
  
    services.mopidy = {
      enable = false;
      # user = "siddharthist";
      # group = "siddharthist";
      configuration = ''
        [local]
        media_dir = /home/siddharthist/Dropbox/langston/music
        scan_follow_symlinks = true
  
        [file]
        enabled = true
        media_dir = /home/siddharthist/Dropbox/langston/music
        follow_symlinks = true
  
        [soundcloud]
        auth_token = 1-35204-13055450-d7e88a776b7aaf8
      '';
      extensionPackages = with pkgs; [
        # TODO: upstream mopidy-podcast
  
negative.code: { config, pkgs, ... }:
  
  let
    mpd_mopidy = "mpd";
    mpd_port   = 6600;
    music_dir  = "/home/siddharthist/Dropbox/langston/music";
  in {
    environment.systemPackages = with pkgs; [
      flac
      pavucontrol
  