Add lazygit configuration from my old dotfiles
All checks were successful
check / check (push) Successful in 36s
All checks were successful
check / check (push) Successful in 36s
This commit is contained in:
parent
7d9119e35b
commit
be239649d4
6 changed files with 29 additions and 2 deletions
|
@ -19,6 +19,7 @@
|
|||
atuin.enable = true;
|
||||
direnv.enable = true;
|
||||
git.enable = true;
|
||||
lazygit.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
atuin.enable = true;
|
||||
direnv.enable = true;
|
||||
git.enable = true;
|
||||
lazygit.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
zsh.enable = true;
|
||||
atuin.enable = true;
|
||||
direnv.enable = true;
|
||||
lazygit.enable = true;
|
||||
};
|
||||
|
||||
editors.neovim.enable = true;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
./atuin.nix
|
||||
./direnv.nix
|
||||
./git.nix
|
||||
./lazygit.nix
|
||||
./zsh
|
||||
];
|
||||
}
|
22
modules/home/shell/lazygit.nix
Normal file
22
modules/home/shell/lazygit.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue