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:
Harald Hoyer 2024-11-29 13:36:00 +01:00
parent b9762cf147
commit 4390f2ae09
2 changed files with 1 additions and 10 deletions

View file

@ -9,11 +9,6 @@ with lib;
with lib.metacfg;
let
cfg = config.metacfg.base;
gitconfig = pkgs.writeText "gitconfig" ''
[filter "rot8000"]
smudge = ${pkgs.metacfg.rot8000}/bin/rot8000
clean = ${pkgs.metacfg.rot8000}/bin/rot8000
'';
in
{
options.metacfg.base = with types; {
@ -166,10 +161,10 @@ in
};
systemd.services.nixos-upgrade = {
path = [ pkgs.metacfg.rot8000 ];
environment.GIT_CONFIG_GLOBAL = toString gitconfig;
};
programs.git.enable = true;
programs.git.config = {
"filter \"rot8000\"" = {
smudge = "${pkgs.metacfg.rot8000}/bin/rot8000";

View file

@ -47,10 +47,6 @@
programs.git.config = {
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; [