Skip to content

Lazygit ​

Catalog v8.

Installs Lazygit, a terminal interface for Git, and enables Git.

Select ​

The terminal shell preset includes Lazygit; there is no selector for it:

toml
[shell]
preset = "terminal"

Apply the change after editing limanix.toml.

Versions ​

Lazygit comes from the catalog's base Nixpkgs revision. This module has no version lines. Inside the VM, lazygit --version shows the installed version.

Use ​

Inside the VM, open a Git repository and run:

console
lazygit

The interface lets you inspect changes, stage files, and work with commits and branches. Press Space to stage a file, c to commit, P to push, p to pull and ? to see the keys. Configure your commit identity as described in CLI tools.

Customize ​

With the default system flavor, Lazygit keeps its own theme, which uses the terminal's colors and background. A Catppuccin flavor in [theme] of limanix.toml sets the colors of its palette in /etc/xdg/lazygit/config.yml. A personal ~/.config/lazygit/config.yml takes precedence through Lazygit's native XDG lookup. Project .lazygit.yml and .git/lazygit.yml settings retain their native precedence. To change managed settings, assign programs.lazygit.settings in a custom NixOS module:

nix
{ ... }:
{
  programs.lazygit.settings.gui.theme.activeBorderColor = [ "cyan" "bold" ];
}

The package is configurable with programs.lazygit.package.

Configuration and integration
BoundaryContract
Settingsprograms.lazygit.package and programs.lazygit.settings
Managed configuration/etc/xdg/lazygit/config.yml
Personal configuration~/.config/lazygit/config.yml; project .lazygit.yml and .git/lazygit.yml
IntegrationEnables Git; AstroNvim opens the same Lazygit application
ClipboardCopy commands send text to the Mac clipboard through the platform's pbcopy; see Terminal and clipboard
Services and capabilitiesNo daemon or language-support declarations

Corner cases ​

CaseBehavior or next step
Directory is not a Git repositoryOpen the project repository before starting Lazygit
Personal theme winsNative personal and project configuration precedence remains active
Authentication or identityConfigure Git credentials and commit identity for the guest account

Free and open source under the Apache License 2.0.