mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 13:03:45 +00:00
19 lines
546 B
Nix
19 lines
546 B
Nix
{
|
|
lib,
|
|
hostConfig,
|
|
theme,
|
|
...
|
|
}:
|
|
let
|
|
baseConfig = builtins.readFile ../config/lazygit/config.yml;
|
|
mkFullConfig = mode: baseConfig + theme.renderLazygit mode;
|
|
in
|
|
{
|
|
xdg.configFile."lazygit/config-dark.yml".text = mkFullConfig "dark";
|
|
xdg.configFile."lazygit/config-light.yml".text = mkFullConfig "light";
|
|
|
|
home.file = lib.mkIf hostConfig.isDarwin {
|
|
"Library/Application Support/lazygit/config-dark.yml".text = mkFullConfig "dark";
|
|
"Library/Application Support/lazygit/config-light.yml".text = mkFullConfig "light";
|
|
};
|
|
}
|