lazygit config

This commit is contained in:
Zynh Ludwig 2024-06-30 09:51:57 -07:00
parent 60ccf1a5fc
commit e798c797b5
4 changed files with 25 additions and 1 deletions

View file

@ -12,6 +12,7 @@
./rose-pine-cursor.nix
./projects.nix
./easyeffects.nix
./lazygit.nix
];
nixpkgs.config.allowUnfree = true;

22
home/modules/lazygit.nix Normal file
View file

@ -0,0 +1,22 @@
{ lib, config, ... }:
let
cfg = config.snowhawk.lazygit;
in
{
options.snowhawk.lazygit = {
enable = lib.mkEnableOption "lazygit";
};
config = lib.mkIf cfg.enable {
programs.lazygit = {
enable = true;
settings = {
services = {
"git.zynh.me" = "gitea:git.zynh.me";
"git.nullcube.net" = "gitea:git.nullcube.net";
};
};
};
};
}

View file

@ -44,7 +44,6 @@
extraGroups = [ "networkmanager" "wheel" "audio" ];
packages = with pkgs; [
ripgrep
lazygit
unzip
fzf
tree

View file

@ -12,6 +12,7 @@
snowhawk.alacritty.enable = true;
snowhawk.cursor.enable = true;
snowhawk.projects.enable = true;
snowhawk.lazygit.enable = true;
xsession.numlock.enable = true;
@ -65,3 +66,4 @@
programs.home-manager.enable = true;
home.stateVersion = "23.11";
}