anchor.diff:            -Dserver.port=${toString cfg.port} \
             -Dairsonic.contextPath=${cfg.contextPath} \
             -Djava.awt.headless=true \
  +          ${optionalString (cfg.virtualHost != null)
  +            "-Dserver.use-forward-headers=true"} \
             ${toString cfg.jvmOptions} \
             -verbose:gc \
             -jar ${pkgs.airsonic}/webapps/airsonic.war
  
positive.code:         description = ''
            The directory where Airsonic will create files.
            Make sure it is writable.
          '';
        };
  
  
negative.code:         Restart = "always";
          User = "airsonic";
          UMask = "0022";
        };
      };
  
      services.nginx = mkIf (cfg.virtualHost != null) {
        enable = true;
        virtualHosts."${cfg.virtualHost}" = {
          locations."${cfg.contextPath}".proxyPass = "http://${cfg.listenAddress}:${toString cfg.port}";
        };
      };
  
  