1

Modules/Lazygit: Move lazygit config to module

This commit is contained in:
2025-07-20 18:24:39 +02:00
parent 2a9767a66c
commit e9c62b76ba
4 changed files with 56 additions and 33 deletions

View File

@ -15,6 +15,7 @@
./hyprland
./hyprpanel
./kitty
./lazygit
./mpd
./neovim
./nnn

View File

@ -0,0 +1,47 @@
{
config,
nixosConfig,
lib,
mylib,
pkgs,
...
}: let
inherit (config.modules) lazygit color;
in {
options.modules.lazygit = import ./options.nix {inherit lib mylib;};
config = lib.mkIf lazygit.enable {
programs.lazygit = {
enable = true;
settings = {
notARepository = "quit";
timeFormat = "2022-12-31";
shortTimeFormat = "23:49";
border = "rounded";
update.method = "never";
git = {
overrideGpg = true; # Allow editing past signed commits
branchLogCmd = "git log --all --graph --pretty=format:'%C(magenta)%h %C(white) %an %ar%C(auto) %D%n%s%n'";
parseEmoji = true;
};
gui = {
nerdFontsVersion = "3"; # Show icons
theme = {
lightTheme = false;
activeBorderColor = [color.hexS.accent "bold"];
inactiveBorderColor = [color.hexS.overlay0];
optionsTextColor = [color.hexS.accentDim];
selectedLineBgColor = [color.hexS.accentDim];
selectedRangeBgColor = [color.hexS.accentDim];
cherryPickedCommitBgColor = ["#179299"];
cherryPickedCommitFgColor = ["#1e66f5"];
unstagedChangeColor = ["red"];
};
};
};
};
};
}

View File

@ -0,0 +1,7 @@
{
lib,
mylib,
...
}: {
enable = lib.mkEnableOption "Enable lazygit";
}