feat(lazygit): Remove lazygit
This commit is contained in:
parent
7a65a5404c
commit
707617832c
3 changed files with 2 additions and 48 deletions
|
@ -180,18 +180,6 @@
|
|||
"url": "https://github.com/rose-pine/kitty/archive/788bf1bf1a688dff9bbacbd9e516d83ac7dbd216.tar.gz",
|
||||
"hash": "0a5r70q7g29b3fwz3i6rlj8jkyw5rc1pv92icndyc6lbb291bhq1"
|
||||
},
|
||||
"lazygit": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
"type": "GitHub",
|
||||
"owner": "catppuccin",
|
||||
"repo": "lazygit"
|
||||
},
|
||||
"branch": "main",
|
||||
"revision": "772b45481933de5b912cd6176ea8d827217efd1b",
|
||||
"url": "https://github.com/catppuccin/lazygit/archive/772b45481933de5b912cd6176ea8d827217efd1b.tar.gz",
|
||||
"hash": "01airvhdh5mnsr945a6ij8rz5ks8cn246q3an5k8k4b9zari0r6c"
|
||||
},
|
||||
"mako": {
|
||||
"type": "Git",
|
||||
"repository": {
|
||||
|
@ -470,4 +458,5 @@
|
|||
}
|
||||
},
|
||||
"version": 3
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
./hyprland.nix
|
||||
./k9s.nix
|
||||
./kitty.nix
|
||||
./lazygit.nix
|
||||
./newsboat.nix
|
||||
./mako.nix
|
||||
./micro.nix
|
||||
|
|
|
@ -1,34 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib) ctp;
|
||||
inherit (config.catppuccin) sources;
|
||||
|
||||
cfg = config.programs.lazygit.catppuccin;
|
||||
enable = cfg.enable && config.programs.lazygit.enable;
|
||||
|
||||
# NOTE: On MacOS specifically, k9s expects its configuration to be in
|
||||
# `~/Library/Application Support` when not using XDG
|
||||
enableXdgConfig = !pkgs.stdenv.hostPlatform.isDarwin || config.xdg.enable;
|
||||
|
||||
configDirectory =
|
||||
if enableXdgConfig then
|
||||
config.xdg.configHome
|
||||
else
|
||||
"${config.home.homeDirectory}/Library/Application Support";
|
||||
configFile = "${configDirectory}/lazygit/config.yml";
|
||||
in
|
||||
{
|
||||
options.programs.lazygit.catppuccin = lib.ctp.mkCatppuccinOpt { name = "lazygit"; } // {
|
||||
accent = ctp.mkAccentOpt "lazygit";
|
||||
};
|
||||
|
||||
config.home.sessionVariables = lib.mkIf enable {
|
||||
# Ensure that the default config file is still sourced
|
||||
LG_CONFIG_FILE = "${sources.lazygit}/themes-mergable/${cfg.flavor}/${cfg.accent}.yml,${configFile}";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue