Split tui into separate files again
This commit is contained in:
parent
76b0ce23cb
commit
a6733769bd
26
home/tui/bat.nix
Normal file
26
home/tui/bat.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{pkgs, ...}: {
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
config = {
|
||||
theme = "tokyonight";
|
||||
};
|
||||
themes = {
|
||||
tokyonight = builtins.readFile (pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "folke";
|
||||
repo = "tokyonight.nvim";
|
||||
rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833";
|
||||
sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ=";
|
||||
}
|
||||
+ "/extras/sublime/tokyonight_night.tmTheme");
|
||||
Catppuccin-macchiato = builtins.readFile (pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "catppuccin";
|
||||
repo = "bat";
|
||||
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
|
||||
sha256 = "6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
|
||||
}
|
||||
+ "/Catppuccin-macchiato.tmTheme");
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,97 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [./gitui.nix];
|
||||
home.packages = with pkgs; [
|
||||
curl
|
||||
dig
|
||||
fzf
|
||||
git
|
||||
gnutar
|
||||
gnumake
|
||||
gnused
|
||||
gcc
|
||||
ripgrep
|
||||
silver-searcher
|
||||
tree-sitter
|
||||
{...}: {
|
||||
imports = [
|
||||
./neovim.nix
|
||||
./bat.nix
|
||||
./gitui.nix
|
||||
./lazygit.nix
|
||||
];
|
||||
programs = {
|
||||
neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
withNodeJs = true;
|
||||
withRuby = true;
|
||||
withPython3 = true;
|
||||
extraPackages = with pkgs; [
|
||||
# Language servers
|
||||
nil
|
||||
lua-language-server
|
||||
fortls
|
||||
nodePackages.pyright
|
||||
nodePackages.yaml-language-server
|
||||
nodePackages.vim-language-server
|
||||
nodePackages.bash-language-server
|
||||
|
||||
# Null LSP formatters
|
||||
alejandra
|
||||
beautysh
|
||||
black
|
||||
nodePackages.fixjson
|
||||
fprettify
|
||||
isort
|
||||
python3Packages.mdformat
|
||||
shellharden
|
||||
stylua
|
||||
];
|
||||
};
|
||||
lazygit = {
|
||||
enable = true;
|
||||
settings = {
|
||||
gui = {
|
||||
showFileTree = true;
|
||||
showCommandLog = false;
|
||||
showIcons = true;
|
||||
theme = {
|
||||
lightTheme = false;
|
||||
activeBorderColor = ["#a6da95" "bold"];
|
||||
inactiveBorderColor = ["#cad3f5"];
|
||||
optionsTextColor = ["#8aadf4"];
|
||||
selectedLineBgColor = ["#363a4f"];
|
||||
selectedRangeBgColor = ["#363a4f"];
|
||||
cherryPickedCommitBgColor = ["#8bd5ca"];
|
||||
cherryPickedCommitFgColor = ["#8aadf4"];
|
||||
unstagedChangesColor = ["red"];
|
||||
};
|
||||
};
|
||||
update.method = "never";
|
||||
promptToReturnFromSubprocess = false;
|
||||
notARepository = "quit";
|
||||
};
|
||||
};
|
||||
bat = {
|
||||
enable = true;
|
||||
config = {
|
||||
theme = "tokyonight";
|
||||
};
|
||||
themes = {
|
||||
tokyonight = builtins.readFile (pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "folke";
|
||||
repo = "tokyonight.nvim";
|
||||
rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833";
|
||||
sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ=";
|
||||
}
|
||||
+ "/extras/sublime/tokyonight_night.tmTheme");
|
||||
Catppuccin-macchiato = builtins.readFile (pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "catppuccin";
|
||||
repo = "bat";
|
||||
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
|
||||
sha256 = "6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
|
||||
}
|
||||
+ "/Catppuccin-macchiato.tmTheme");
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
26
home/tui/lazygit.nix
Normal file
26
home/tui/lazygit.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{...}: {
|
||||
programs.lazygit = {
|
||||
enable = true;
|
||||
settings = {
|
||||
gui = {
|
||||
showFileTree = true;
|
||||
showCommandLog = false;
|
||||
showIcons = true;
|
||||
theme = {
|
||||
lightTheme = false;
|
||||
activeBorderColor = ["#a6da95" "bold"];
|
||||
inactiveBorderColor = ["#cad3f5"];
|
||||
optionsTextColor = ["#8aadf4"];
|
||||
selectedLineBgColor = ["#363a4f"];
|
||||
selectedRangeBgColor = ["#363a4f"];
|
||||
cherryPickedCommitBgColor = ["#8bd5ca"];
|
||||
cherryPickedCommitFgColor = ["#8aadf4"];
|
||||
unstagedChangesColor = ["red"];
|
||||
};
|
||||
};
|
||||
update.method = "never";
|
||||
promptToReturnFromSubprocess = false;
|
||||
notARepository = "quit";
|
||||
};
|
||||
};
|
||||
}
|
44
home/tui/neovim.nix
Normal file
44
home/tui/neovim.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{pkgs, ...}: {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
withNodeJs = true;
|
||||
withRuby = true;
|
||||
withPython3 = true;
|
||||
extraPackages = with pkgs; [
|
||||
# Misc utils
|
||||
curl
|
||||
fzf
|
||||
git
|
||||
gnutar
|
||||
gnumake
|
||||
gnused
|
||||
gcc
|
||||
ripgrep
|
||||
tree-sitter
|
||||
|
||||
# Language servers
|
||||
nil
|
||||
lua-language-server
|
||||
fortls
|
||||
nodePackages.pyright
|
||||
nodePackages.yaml-language-server
|
||||
nodePackages.vim-language-server
|
||||
nodePackages.bash-language-server
|
||||
|
||||
# Null LSP formatters
|
||||
alejandra
|
||||
beautysh
|
||||
black
|
||||
nodePackages.fixjson
|
||||
fprettify
|
||||
isort
|
||||
python3Packages.mdformat
|
||||
shellharden
|
||||
stylua
|
||||
];
|
||||
};
|
||||
}
|
|
@ -21,8 +21,8 @@ in {
|
|||
localBinInPath = true;
|
||||
shellAliases = {
|
||||
ll = "ls -laF";
|
||||
gg = "gitui";
|
||||
lg = "lazygit";
|
||||
gg = "nvim +Neogit";
|
||||
nv = "neovide --multigrid --maximized";
|
||||
nixos-upgrade = "sudo nixos-rebuild switch --flake ${flakeURL}";
|
||||
home-manager-switch = "${pkgs.home-manager}/bin/home-manager switch --flake ${flakeURL}";
|
||||
|
|
Loading…
Reference in a new issue