diff --git a/modules/programs/lazygit.nix b/modules/programs/lazygit.nix index 84dab379c..7e7312be9 100644 --- a/modules/programs/lazygit.nix +++ b/modules/programs/lazygit.nix @@ -34,8 +34,10 @@ in { ''; description = '' Configuration written to - $XDG_CONFIG_HOME/lazygit/config.yml on Linux - or ~/Library/Application Support/lazygit/config.yml on Darwin. See + $XDG_CONFIG_HOME/lazygit/config.yml + on Linux or on Darwin if is set, otherwise + ~/Library/Application Support/lazygit/config.yml. + See for supported values. ''; @@ -46,12 +48,12 @@ in { home.packages = [ cfg.package ]; home.file."Library/Application Support/lazygit/config.yml" = - mkIf (cfg.settings != { } && isDarwin) { + mkIf (cfg.settings != { } && (isDarwin && !config.xdg.enable)) { source = yamlFormat.generate "lazygit-config" cfg.settings; }; xdg.configFile."lazygit/config.yml" = - mkIf (cfg.settings != { } && !isDarwin) { + mkIf (cfg.settings != { } && !(isDarwin && !config.xdg.enable)) { source = yamlFormat.generate "lazygit-config" cfg.settings; }; };