anchor.diff:        cp ${owncloudConfig} ${config.dataDir}/config/config.php
         mkdir -p ${config.dataDir}/storage
         mkdir -p ${config.dataDir}/apps
  -      cp -r ${pkgs.owncloud}/apps/* ${config.dataDir}/apps/
  +      cp -r ${config.package}/apps/* ${config.dataDir}/apps/
         chmod -R ug+rw ${config.dataDir}
         chmod -R o-rwx ${config.dataDir}
         chown -R wwwrun:wwwrun ${config.dataDir}
  
positive.code:     { name = "OC_CONFIG_PATH"; value = "${config.dataDir}/config/"; }
    ];
  
    documentRoot = if config.urlPrefix == "" then pkgs.owncloud else null;
  
    enablePHP = true;
  
    options = {
  
      urlPrefix = mkOption {
        default = "";
  
negative.code: 
    extraConfig =
      ''
        ${if config.urlPrefix != "" then "Alias ${config.urlPrefix} ${config.package}" else ''
  
          RewriteEngine On
          RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
          RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
        ''}
  
        <Directory ${config.package}>
          ${builtins.readFile "${config.package}/.htaccess"}
        </Directory>
      '';
  
  