chore: remove redundant git filter rot8000 config
Remove duplicate configurations for the rot8000 git filter from both mx and base modules. This change helps to streamline the code by ensuring that the unnecessary and redundant configurations are eliminated.
This commit is contained in:
		
							parent
							
								
									b9762cf147
								
							
						
					
					
						commit
						4390f2ae09
					
				
					 2 changed files with 1 additions and 10 deletions
				
			
		| 
						 | 
					@ -9,11 +9,6 @@ with lib;
 | 
				
			||||||
with lib.metacfg;
 | 
					with lib.metacfg;
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  cfg = config.metacfg.base;
 | 
					  cfg = config.metacfg.base;
 | 
				
			||||||
  gitconfig = pkgs.writeText "gitconfig" ''
 | 
					 | 
				
			||||||
    [filter "rot8000"]
 | 
					 | 
				
			||||||
        smudge = ${pkgs.metacfg.rot8000}/bin/rot8000
 | 
					 | 
				
			||||||
        clean = ${pkgs.metacfg.rot8000}/bin/rot8000
 | 
					 | 
				
			||||||
  '';
 | 
					 | 
				
			||||||
in
 | 
					in
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  options.metacfg.base = with types; {
 | 
					  options.metacfg.base = with types; {
 | 
				
			||||||
| 
						 | 
					@ -166,10 +161,10 @@ in
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    systemd.services.nixos-upgrade = {
 | 
					    systemd.services.nixos-upgrade = {
 | 
				
			||||||
      path = [ pkgs.metacfg.rot8000 ];
 | 
					      path = [ pkgs.metacfg.rot8000 ];
 | 
				
			||||||
      environment.GIT_CONFIG_GLOBAL = toString gitconfig;
 | 
					 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    programs.git.enable = true;
 | 
					    programs.git.enable = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    programs.git.config = {
 | 
					    programs.git.config = {
 | 
				
			||||||
      "filter \"rot8000\"" = {
 | 
					      "filter \"rot8000\"" = {
 | 
				
			||||||
        smudge = "${pkgs.metacfg.rot8000}/bin/rot8000";
 | 
					        smudge = "${pkgs.metacfg.rot8000}/bin/rot8000";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -47,10 +47,6 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  programs.git.config = {
 | 
					  programs.git.config = {
 | 
				
			||||||
    safe.directory = "/var/lib/gitea/repositories/harald/nixcfg.git";
 | 
					    safe.directory = "/var/lib/gitea/repositories/harald/nixcfg.git";
 | 
				
			||||||
    "filter \"rot8000\"" = {
 | 
					 | 
				
			||||||
      smudge = "${pkgs.metacfg.rot8000}/bin/rot8000";
 | 
					 | 
				
			||||||
      clean = "${pkgs.metacfg.rot8000}/bin/rot8000";
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  environment.systemPackages = with pkgs; [
 | 
					  environment.systemPackages = with pkgs; [
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue