feat(nix): migrate lazygit

This commit is contained in:
Stefan Imhoff
2024-07-05 16:39:18 +02:00
parent 9fc9fb3a7b
commit 66f089765c
5 changed files with 36 additions and 20 deletions

View File

@@ -8,7 +8,6 @@
- ~/.config/gh
- ~/.config/gh-dash
- ~/.config/lazydocker
- ~/.config/lazygit
- ~/.config/tmux
- ~/.gnupg
@@ -21,7 +20,6 @@
~/.config/gh/config.yml: github/gh/config.yml
~/.config/karabiner: karabiner
~/.config/lazydocker/config.yml: docker/lazydocker.yml
~/.config/lazygit/config.yml: git/lazygit.yml
~/.config/lf: lf
~/.config/nvim: nvim
~/.config/oatmeal: oatmeal

View File

@@ -239,8 +239,6 @@ brew "jpeg", link: true
brew "jq"
# Lazier way to manage everything docker
brew "lazydocker"
# Simple terminal UI for git commands
brew "lazygit"
# Terminal file manager
brew "lf"
# Access DVDs as block devices without the decryption

View File

@@ -1,16 +0,0 @@
git:
overrideGpg: true
paging:
colorArg: always
pager: delta --dark --paging=never syntax-theme=Dracula
customCommands:
- key: "C"
command: "git cz c"
description: "commit with commitizen"
context: "files"
loadingText: "opening commitizen commit tool"
subprocess: true
- key: "W"
command: git commit --no-verify
context: "global"
subprocess: true

View File

@@ -10,6 +10,7 @@ in
./ag
./bat
./ctags
./lazygit
./ripgrep
./skhd
./yabai
@@ -21,6 +22,9 @@ in
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# Write into ~/.config
xdg.enable = true;
# TODO: First migrate all fonts
# fonts.fontconfig.enable = true;

View File

@@ -0,0 +1,32 @@
{ ... }:
{
programs.lazygit = {
enable = true;
settings = {
git = {
overrideGpg = true;
paging = {
colorArg = "always";
pager = "delta --dark --paging=never syntax-theme=Dracula";
};
};
customCommands = [
{
key = "C";
command = "git cz c";
description = "commit with commitizen";
context = "files";
loadingText = "opening commitizen commit tool";
subprocess = true;
}
{
key = "W";
command = "git commit --no-verify";
context = "global";
subprocess = true;
}
];
};
};
}