Personal Nix setup
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add Zig tools

+26
+1
home/development/default.nix
··· 14 14 ./js.nix 15 15 ./react-native.nix 16 16 ./terraform.nix 17 + ./zig.nix 17 18 ]; 18 19 }
+19
home/development/zig.nix
··· 1 + { lib, config, pkgs, ... }: 2 + 3 + with lib; 4 + let 5 + cfg = config.modules.development; 6 + in { 7 + options.modules.development.zig = { 8 + enable = mkOption { 9 + default = cfg.enable; 10 + example = true; 11 + description = "Whether to enable Zig configuration."; 12 + type = types.bool; 13 + }; 14 + }; 15 + 16 + config = mkIf cfg.zig.enable { 17 + home.packages = with pkgs; [ zig ]; 18 + }; 19 + }
+1
modules/nvim/default.nix
··· 19 19 bunx = '${pkgs.bun}/bin/bunx', 20 20 ripgrep = '${pkgs.ripgrep}/bin/rg', 21 21 rustanalyzer = '${pkgs.rust-analyzer}/bin/rust-analyzer', 22 + zls = '${pkgs.zls}/bin/zls', 22 23 } 23 24 24 25 hardline_colors = ${mkVimHardlineColors colors}
+5
modules/nvim/init.lua
··· 497 497 flags = { debounce_text_changes = 200 }, 498 498 }) 499 499 500 + lsp_setup('zls', { 501 + cmd = { nix_bins.zls }, 502 + flags = { debounce_text_changes = 200 }, 503 + }) 504 + 500 505 -- treesitter 501 506 vim.opt.runtimepath:append("~/.local/share/nvim/site/parser") 502 507