dotfiles/nixpkgs/home-manager/modules/common.nix

134 lines
2.7 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
2022-09-29 19:59:38 +00:00
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"intelephense"
];
home.packages = with pkgs; [
2022-10-04 07:17:18 +00:00
bottom
ctop
delta
file
fzf
gcc
gh
git
git-crypt
just
2022-10-04 07:17:18 +00:00
tree-sitter
htop
jq
lua
neofetch
platformsh
pv
ripgrep
tldr
tmuxinator
tree
unzip
wget
2022-10-12 06:59:47 +00:00
zoxide
2022-09-29 18:25:48 +00:00
# LSP
2022-09-29 19:59:38 +00:00
# TODO: nodePackages."@ansible/ansible-language-server"
2022-10-04 07:17:18 +00:00
html-tidy
2022-09-29 19:59:38 +00:00
nodePackages."@tailwindcss/language-server"
nodePackages.bash-language-server
nodePackages.dockerfile-language-server-nodejs
nodePackages.eslint
nodePackages.intelephense
2022-09-29 18:25:48 +00:00
nodePackages.markdownlint-cli
2022-09-29 19:59:38 +00:00
nodePackages.prettier
nodePackages.typescript
nodePackages.typescript-language-server
nodePackages.vls
nodePackages.vscode-langservers-extracted
nodePackages.yaml-language-server
php81Packages.phpcbf
php81Packages.phpcs
php81Packages.phpstan
2022-10-03 16:47:17 +00:00
rnix-lsp
2022-09-29 19:59:38 +00:00
shellcheck
];
programs.bat.enable = true;
2022-09-28 07:23:10 +00:00
programs.neovim = {
enable = true;
2022-10-04 08:21:39 +00:00
plugins = with pkgs; [
vimPlugins.comment-nvim
vimPlugins.git-worktree-nvim
vimPlugins.gitsigns-nvim
vimPlugins.harpoon
vimPlugins.impatient-nvim
2022-10-11 21:11:59 +00:00
vimPlugins.neogit
2022-10-04 08:21:39 +00:00
vimPlugins.nvim-web-devicons
vimPlugins.refactoring-nvim
vimPlugins.rest-nvim
vimPlugins.vim-abolish
vimPlugins.vim-highlightedyank
vimPlugins.vim-polyglot
vimPlugins.vim-repeat
vimPlugins.vim-surround
vimPlugins.vim-test
2022-09-28 07:23:10 +00:00
2022-10-04 08:21:39 +00:00
# Treesitter
vimPlugins.nvim-treesitter
vimPlugins.nvim-treesitter-context
vimPlugins.nvim-treesitter-textobjects
2022-09-28 07:23:10 +00:00
2022-10-04 08:21:39 +00:00
# LSP
vimPlugins.null-ls-nvim
vimPlugins.nvim-lspconfig
vimPlugins.lsp-status-nvim
# Completion
vimPlugins.cmp-buffer
vimPlugins.cmp-cmdline
vimPlugins.cmp-nvim-lsp
vimPlugins.cmp-path
vimPlugins.cmp-treesitter
vimPlugins.cmp-vsnip
vimPlugins.cmp_luasnip
vimPlugins.lspkind-nvim
vimPlugins.nvim-cmp
vimPlugins.luasnip
# Telescope
vimPlugins.plenary-nvim
vimPlugins.popup-nvim
vimPlugins.telescope-file-browser-nvim
vimPlugins.telescope-fzf-native-nvim
vimPlugins.telescope-nvim
vimPlugins.telescope-ui-select-nvim
# Git
# vimPlugins.neogit
# Databases
vimPlugins.vim-dadbod
vimPlugins.vim-dadbod-ui
vimPlugins.vim-dadbod-completion
# Themes
vimPlugins.nightfox-nvim
2022-09-28 07:23:10 +00:00
];
};
2022-10-12 06:59:47 +00:00
home.sessionPath = [
"$HOME/.config/bin"
];
xdg.configFile.bin = {
source = ../../../bin;
recursive = true;
};
xdg.configFile.nvim = {
source = ../../../config/neovim;
recursive = true;
};
}