mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 05:02:10 +00:00
feat: lazygit theme (#69)
This commit is contained in:
parent
a7acd0fb2d
commit
38c096dbc1
5 changed files with 84 additions and 23 deletions
|
|
@ -1,12 +1,19 @@
|
|||
{
|
||||
lib,
|
||||
hostConfig,
|
||||
theme,
|
||||
...
|
||||
}:
|
||||
let
|
||||
baseConfig = builtins.readFile ../config/lazygit/config.yml;
|
||||
mkFullConfig = mode: baseConfig + theme.renderLazygit mode;
|
||||
in
|
||||
{
|
||||
xdg.configFile."lazygit/config.yml".source = ../config/lazygit/config.yml;
|
||||
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.yml".source = ../config/lazygit/config.yml;
|
||||
"Library/Application Support/lazygit/config-dark.yml".text = mkFullConfig "dark";
|
||||
"Library/Application Support/lazygit/config-light.yml".text = mkFullConfig "light";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue