nixos/home/tui/default.nix
Evie Litherland-Smith b102f9e209 Major cleanup for files
Reduce complexity and in flake.nix and be more efficient in re-using
things

Removed some reduandant files in home/ and tidied up the structure
somewhat

Moved things from desktop, gui, etc... to top level

Changed env to shell, indiv shell expressions import relevant others
2023-07-16 17:35:36 +01:00

96 lines
2.4 KiB
Nix

{pkgs, ...}: {
home.packages = with pkgs; [
git
curl
gnutar
gnumake
gnused
gcc
fzf
ripgrep
tree-sitter
];
programs = {
neovim = {
enable = true;
package = pkgs.neovim-nightly;
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");
};
};
};
}