nixos/home/tui/default.nix
Evie Litherland-Smith e2c9d8eba7 Use custom neovim flake, centralise tokyonight source
nvim repo has been converted to flake for easier inclusion but still
stand-alone for non-nix systems

Move tokyonight repo fetch to flake input to keep consistent and reduce
multiple fetch calls
2023-07-24 13:27:05 +01:00

27 lines
733 B
Nix

{
pkgs,
neovim-custom,
tokyonight,
...
}: {
imports = [neovim-custom.homeManagerModules.default];
programs = {
bat = {
enable = true;
config.theme = "tokyonight";
themes.tokyonight = builtins.readFile "${tokyonight}/extras/sublime/tokyonight_night.tmTheme";
};
gitui = {
enable = true;
keyConfig = builtins.readFile (pkgs.fetchFromGitHub {
owner = "extrawurst";
repo = "gitui";
rev = "8f7f35b8a97e38a0e181032285554cd0961d588e";
sha256 = "sha256-zJDf6WhaUe8QTPCoVAdfCdUvYEcQpm2qddQiKw41kjY=";
}
+ "/vim_style_key_config.ron");
theme = builtins.readFile "${tokyonight}/extras/gitui/tokyonight_night.ron";
};
};
}