feat(vcs): add support for git-cliff
This commit is contained in:
		
							parent
							
								
									f47962d025
								
							
						
					
					
						commit
						0f6e372345
					
				@ -12,6 +12,7 @@ in {
 | 
			
		||||
  options.modules.vcs = {
 | 
			
		||||
    git = {
 | 
			
		||||
      enable = mkEnableOption "enables git";
 | 
			
		||||
      cliff = mkEnableOption "enables git-cliff support";
 | 
			
		||||
      sendmail = {
 | 
			
		||||
        enable = mkOption {
 | 
			
		||||
          type = types.bool;
 | 
			
		||||
@ -94,7 +95,7 @@ in {
 | 
			
		||||
    '');
 | 
			
		||||
    modules = {
 | 
			
		||||
      git = mkIf cfg.git.enable {
 | 
			
		||||
        inherit (cfg.git) enable sendmail browser completeConfig emacs mergeTool;
 | 
			
		||||
        inherit (cfg.git) enable cliff sendmail browser completeConfig emacs mergeTool;
 | 
			
		||||
        inherit (cfg) email name editor;
 | 
			
		||||
        publicKeyFile = cfg.publicKey.file;
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
@ -17,6 +17,7 @@ in {
 | 
			
		||||
      type = types.str;
 | 
			
		||||
      default = "Lucien Cartier-Tilet";
 | 
			
		||||
    };
 | 
			
		||||
    cliff = mkEnableOption "enables git-cliff support";
 | 
			
		||||
    sendmail = {
 | 
			
		||||
      enable = mkOption {
 | 
			
		||||
        type = types.bool;
 | 
			
		||||
@ -77,6 +78,7 @@ in {
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  config = lib.mkIf cfg.enable {
 | 
			
		||||
    programs.git-cliff.enable = cfg.cliff;
 | 
			
		||||
    programs.git = let
 | 
			
		||||
      smtpEmail =
 | 
			
		||||
        if (cfg.sendmail.user == null)
 | 
			
		||||
 | 
			
		||||
@ -89,6 +89,7 @@
 | 
			
		||||
          integration = true;
 | 
			
		||||
          pkg = emacsPkg;
 | 
			
		||||
        };
 | 
			
		||||
        cliff = true;
 | 
			
		||||
        sendmail = {
 | 
			
		||||
          enable = true;
 | 
			
		||||
          passwordFile = config.sops.secrets.emailPassword.path;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user