Personal Nix setup

Add Zig tools

Changed files
+26
home
development
modules
+1
home/development/default.nix
···
./js.nix
./react-native.nix
./terraform.nix
];
}
···
./js.nix
./react-native.nix
./terraform.nix
+
./zig.nix
];
}
+19
home/development/zig.nix
···
···
+
{ lib, config, pkgs, ... }:
+
+
with lib;
+
let
+
cfg = config.modules.development;
+
in {
+
options.modules.development.zig = {
+
enable = mkOption {
+
default = cfg.enable;
+
example = true;
+
description = "Whether to enable Zig configuration.";
+
type = types.bool;
+
};
+
};
+
+
config = mkIf cfg.zig.enable {
+
home.packages = with pkgs; [ zig ];
+
};
+
}
+1
modules/nvim/default.nix
···
bunx = '${pkgs.bun}/bin/bunx',
ripgrep = '${pkgs.ripgrep}/bin/rg',
rustanalyzer = '${pkgs.rust-analyzer}/bin/rust-analyzer',
}
hardline_colors = ${mkVimHardlineColors colors}
···
bunx = '${pkgs.bun}/bin/bunx',
ripgrep = '${pkgs.ripgrep}/bin/rg',
rustanalyzer = '${pkgs.rust-analyzer}/bin/rust-analyzer',
+
zls = '${pkgs.zls}/bin/zls',
}
hardline_colors = ${mkVimHardlineColors colors}
+5
modules/nvim/init.lua
···
flags = { debounce_text_changes = 200 },
})
-- treesitter
vim.opt.runtimepath:append("~/.local/share/nvim/site/parser")
···
flags = { debounce_text_changes = 200 },
})
+
lsp_setup('zls', {
+
cmd = { nix_bins.zls },
+
flags = { debounce_text_changes = 200 },
+
})
+
-- treesitter
vim.opt.runtimepath:append("~/.local/share/nvim/site/parser")