Add lazygit configuration from my old dotfiles
All checks were successful
check / check (push) Successful in 36s

This commit is contained in:
Florian RICHER 2025-06-27 11:43:56 +02:00
parent 7d9119e35b
commit be239649d4
6 changed files with 29 additions and 2 deletions

View file

@ -19,6 +19,7 @@
atuin.enable = true;
direnv.enable = true;
git.enable = true;
lazygit.enable = true;
};
};
}

View file

@ -15,6 +15,7 @@
atuin.enable = true;
direnv.enable = true;
git.enable = true;
lazygit.enable = true;
};
};
}

View file

@ -12,7 +12,7 @@
};
editors = {
# neovim.enable = true; TODO: Not stable yet
neovim.enable = true;
vscode.enable = true;
};
@ -21,6 +21,7 @@
atuin.enable = true;
direnv.enable = true;
git.enable = true;
lazygit.enable = true;
};
};
}

View file

@ -22,6 +22,7 @@
zsh.enable = true;
atuin.enable = true;
direnv.enable = true;
lazygit.enable = true;
};
editors.neovim.enable = true;

View file

@ -5,6 +5,7 @@
./atuin.nix
./direnv.nix
./git.nix
./lazygit.nix
./zsh
];
}
}

View file

@ -0,0 +1,22 @@
{ config, lib, ... }:
with lib;
let
cfg = config.modules.home.shell.lazygit;
in
{
options.modules.home.shell.lazygit = {
enable = mkEnableOption ''
Enable lazygit with my custom configurations
'';
};
config = mkIf cfg.enable {
programs.lazygit = {
enable = true;
settings = {
git.pull.mode = "rebase";
};
};
};
}