anchor.diff:          ''} >>"$out/gitolite.rc"
         '';
     in {
  +    services.gitolite.extraGitoliteRc = optionalString cfg.enableGitAnnex ''
  +      # Enable git-annex support:
  +      push( @{$RC{ENABLE}}, 'git-annex-shell ua');
  +    '';
  +
       users.extraUsers.${cfg.user} = {
         description     = "Gitolite user";
         home            = cfg.dataDir;
  
positive.code:         '';
      };
  
      environment.systemPackages = [ pkgs.gitolite pkgs.git ];
    });
  }
  
negative.code:         '';
        };
  
        enableGitAnnex = mkOption {
          type = types.bool;
          default = false;
          description = ''
            Enable git-annex support. Uses the <literal>extraGitoliteRc</literal> option
            to apply the necessary configuration.
          '';
        };
  
        commonHooks = mkOption {
          type = types.listOf types.path;
          default = [];
  