dircolors: apply extraConfig after settings (#1890)
Applying extraConfig before settings made it unable to override the defaults.
This commit is contained in:
parent
447ed0fbcb
commit
ad04237d51
3 changed files with 11 additions and 4 deletions
|
|
@ -204,8 +204,8 @@ in {
|
|||
};
|
||||
|
||||
home.file.".dir_colors".text = concatStringsSep "\n" ([ ]
|
||||
++ optional (cfg.extraConfig != "") cfg.extraConfig
|
||||
++ mapAttrsToList formatLine cfg.settings) + "\n";
|
||||
++ mapAttrsToList formatLine cfg.settings ++ [ "" ]
|
||||
++ optional (cfg.extraConfig != "") cfg.extraConfig);
|
||||
|
||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
||||
eval $(${pkgs.coreutils}/bin/dircolors -b ~/.dir_colors)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue