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
|
@ -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";
|
||||
|
|
|
@ -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; [
|
||||
|
|
Loading…
Reference in a new issue