diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2022-11-11 17:46:12 +0100 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2022-11-11 17:46:12 +0100 |
| commit | 70f3bc54f2ba254645b0f7d4676443e034456d7a (patch) | |
| tree | 8accaaf324d3ddd12967ff1d0fefc88244e49f16 /home.nix | |
| parent | 91fb3eff2cf2cdc16a0bef278cd7fb64cde796b8 (diff) | |
feat(flake): no more hardcoding!
Diffstat (limited to 'home.nix')
| -rw-r--r-- | home.nix | 199 |
1 files changed, 107 insertions, 92 deletions
@@ -1,112 +1,127 @@ -{ flake, config, pkgs, ... }: - { - # Found this here: nix-community.github.io configuration example + flake, + config, + pkgs, + ... +}: { + # Found this here: nix-community.github.io configuration example - home.username = "mike"; - home.homeDirectory = "/home/mike"; - home.stateVersion = "22.05"; - programs.home-manager.enable = true; - - home.packages = with pkgs; [ - htop - fortune - vim - docker - stow - (nerdfonts.override { fonts = [ "FiraCode" ]; }) + home.username = "mike"; + home.homeDirectory = "/home/mike"; + home.stateVersion = "22.05"; + programs.home-manager.enable = true; - firefox-wayland + home.packages = with pkgs; [ + htop + fortune + vim + docker + stow + (nerdfonts.override {fonts = ["FiraCode"];}) + ripgrep - swaylock - swayidle - wl-clipboard - mako - wofi - waybar - ]; + firefox-wayland - programs.git = { - enable = true; - userName = "Mike Vink"; - userEmail = "mike1994vink@gmail.com"; - }; + swaylock + swayidle + wl-clipboard + mako + wofi + waybar + ]; - programs.alacritty = { - enable = true; - settings = { - env.TERM = "alacritty"; - font = { - normal = { - family = "FiraCode Nerd Font"; - style = "Regular"; - }; + programs.git = { + enable = true; + userName = "Mike Vink"; + userEmail = "mike1994vink@gmail.com"; + }; + + programs.alacritty = { + enable = true; + settings = { + env.TERM = "alacritty"; + font = { + normal = { + family = "FiraCode Nerd Font"; + style = "Regular"; }; }; }; + }; - wayland.windowManager.sway = { - enable = true; - wrapperFeatures.gtk = true; - config = rec { - terminal = "alacritty"; - menu = "wofi --show run"; - modifier = "Mod4"; - bars = [{ - fonts.size = 15.0; - position = "bottom"; - }]; - startup = [ - {command = "firefox";} - ]; - }; + wayland.windowManager.sway = { + enable = true; + wrapperFeatures.gtk = true; + config = rec { + terminal = "alacritty"; + menu = "wofi --show run"; + modifier = "Mod4"; + bars = [ + { + fonts.size = 15.0; + position = "bottom"; + } + ]; + startup = [ + {command = "firefox";} + ]; }; - - # netrc-file = ~/.netrc; + }; - programs.neovim = { - enable = true; - package = pkgs.neovim-unwrapped; - viAlias = true; - vimAlias = true; - extraConfig = " + programs.neovim = { + enable = true; + package = pkgs.neovim-unwrapped; + viAlias = true; + vimAlias = true; + extraPackages = with pkgs; [ + sumneko-lua-language-server + pyright + gopls + yaml-language-server + alejandra + statix + ]; + extraConfig = " lua <<LUA +Flake = { + lua_language_server = [[${pkgs.sumneko-lua-language-server}]], +} vim.opt.runtimepath:append({ [[${flake}/neovim]], [[${flake}/neovim/lua]] }) vim.cmd [[luafile ${flake}/neovim/init.lua]] LUA "; - plugins = with pkgs.vimPlugins; - let - fetchPluginFromGit = name: rev: pkgs.vimUtils.buildVimPluginFrom2Nix { - name = name; - src = builtins.fetchGit { - url = "https://github.com/${name}"; - submodules = true; - inherit rev; - }; - }; - in [ - vim-nix - vim-dirvish - nvim-dap - nvim-dap-ui - vim-fugitive - gruvbox-material - luasnip - nvim-lspconfig - trouble-nvim - nlua-nvim - null-ls-nvim - plenary-nvim - + plugins = with pkgs.vimPlugins; [ + # highlighting + (nvim-treesitter.withPlugins (plugins: pkgs.tree-sitter.allGrammars)) + playground + gruvbox-material - (nvim-treesitter.withPlugins (plugins: pkgs.tree-sitter.allGrammars)) - playground + # external + vim-dirvish + vim-fugitive + vim-oscyank + firvish-nvim - (fetchPluginFromGit "klen/nvim-test" "32f162c27045fc712664b9ddbd33d3c550cb2bfc") - (fetchPluginFromGit "mvinkio/tnychain" "cef72f688e67f40616db8ecf9d7c63e505c2dd23") - (fetchPluginFromGit "Furkanzmc/firvish.nvim" "127f9146175d6bbaff6a8b761081cfd2279f8351") - (fetchPluginFromGit "ray-x/lsp_signature.nvim" "137bfaa7c112cb058f8e999a8fb49363fae3a697") - ]; - }; + # moving around + marks-nvim + + # Coding + nvim-lspconfig + nvim-dap + nvim-dap-ui + luasnip + trouble-nvim + null-ls-nvim + plenary-nvim + nlua-nvim + lsp_signature-nvim + + # cmp + nvim-cmp + cmp-nvim-lsp + cmp-buffer + cmp-path + cmp_luasnip + ]; + }; } |
