1

Home: Rename home/modules to home/homemodules

This commit is contained in:
2026-01-18 15:34:36 +01:00
parent 25e9128875
commit d12b247368
117 changed files with 1 additions and 1 deletions

View File

@ -0,0 +1,54 @@
{
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];
defaultFgColor = [color.hexS.text];
optionsTextColor = [color.hexS.accentDim];
# Because we can't set the fucking foregrounds for this, use a dark color
selectedLineBgColor = [color.hexS.surface0];
selectedRangeBgColor = [color.hexS.surface0];
cherryPickedCommitBgColor = [color.hexS.green];
cherryPickedCommitFgColor = [color.hexS.blue];
unstagedChangeColor = [color.hexS.red];
};
};
};
};
};
}

View File

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