dotfiles/home-manager/modules/common.nix

178 lines
3.9 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
let
in {
2022-09-29 19:59:38 +00:00
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"intelephense"
2022-12-19 09:41:30 +00:00
"postman"
2022-09-29 19:59:38 +00:00
];
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
mysql
2022-10-04 07:17:18 +00:00
neofetch
2022-12-09 09:18:24 +00:00
nodejs
php81
2022-10-04 07:17:18 +00:00
platformsh
2022-12-19 09:41:30 +00:00
postman
2022-12-09 09:18:24 +00:00
pulumi-bin
2022-10-04 07:17:18 +00:00
pv
ripgrep
2022-12-21 11:41:33 +00:00
terraform
2022-10-04 07:17:18 +00:00
tldr
tmuxinator
tree
unzip
wget
2022-12-09 09:18:24 +00:00
yarn
2022-10-12 06:59:47 +00:00
zoxide
2022-09-29 18:25:48 +00:00
# LSP
gopls
2022-10-04 07:17:18 +00:00
html-tidy
nodePackages."@ansible/ansible-language-server"
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
2022-12-17 12:48:51 +00:00
sumneko-lua-language-server
];
programs.bat.enable = true;
2022-09-28 07:23:10 +00:00
programs.neovim = {
enable = true;
2022-12-04 15:52:32 +00:00
plugins = let
customVim.vim-astro = pkgs.vimUtils.buildVimPlugin {
name = "vim-astro";
src = pkgs.fetchFromGitHub {
owner = "wuelnerdotexe";
repo = "vim-astro";
rev = "main";
sha256 = "HyQ4i/T1uQmGurBqCpo8+ESVSVPsTrLQBxLe2OEYjcY=";
2022-12-04 15:52:32 +00:00
};
};
customVim.tabline-vim = pkgs.vimUtils.buildVimPlugin {
name = "tabline-vim";
src = pkgs.fetchFromGitHub {
owner = "mkitt";
repo = "tabline.vim";
rev = "69c9698a3240860adaba93615f44778a9ab724b4";
sha256 = "51b8PxyKqBdeIvmmZyF2hpMBjkyrlZDdTB1opr5JZ7Y=";
};
};
in with pkgs; [
vimPlugins.comment-nvim
vimPlugins.dial-nvim
vimPlugins.git-worktree-nvim
vimPlugins.gitsigns-nvim
vimPlugins.harpoon
vimPlugins.impatient-nvim
vimPlugins.indent-blankline-nvim
vimPlugins.neogit
vimPlugins.nvim-web-devicons
vimPlugins.refactoring-nvim
vimPlugins.rest-nvim
vimPlugins.splitjoin-vim
vimPlugins.vim-abolish
vimPlugins.vim-floaterm
vimPlugins.vim-highlightedyank
vimPlugins.vim-polyglot
vimPlugins.vim-repeat
vimPlugins.vim-surround
vimPlugins.vim-test
vimPlugins.vim-tmux-navigator
vimPlugins.vimux
customVim.vim-astro
customVim.tabline-vim
2022-09-28 07:23:10 +00:00
2022-10-14 09:54:25 +00:00
# Debugging
vimPlugins.nvim-dap
vimPlugins.nvim-dap-ui
vimPlugins.nvim-dap-virtual-text
2022-10-14 09:54:25 +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
2022-10-04 08:21:39 +00:00
# Completion
vimPlugins.cmp-buffer
vimPlugins.cmp-cmdline
vimPlugins.cmp-nvim-lsp
vimPlugins.cmp-nvim-lsp-signature-help
vimPlugins.cmp-path
vimPlugins.cmp-tabnine
vimPlugins.cmp-treesitter
vimPlugins.cmp-vsnip
vimPlugins.cmp_luasnip
vimPlugins.lspkind-nvim
vimPlugins.nvim-cmp
2022-12-04 15:52:32 +00:00
# Snippets
vimPlugins.luasnip
2022-10-04 08:21:39 +00:00
# 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
2022-10-04 08:21:39 +00:00
# Databases
vimPlugins.vim-dadbod
vimPlugins.vim-dadbod-ui
vimPlugins.vim-dadbod-completion
2022-10-04 08:21:39 +00:00
# Themes
vimPlugins.onedark-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 = {
2022-12-21 11:40:36 +00:00
source = ../../bin;
2022-10-12 06:59:47 +00:00
recursive = true;
};
xdg.configFile.nvim = {
2022-12-21 11:40:36 +00:00
source = ../../config/neovim;
recursive = true;
};
}