1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00

packages: add libiconv for mac, fix nvim lsp

This commit is contained in:
TheGeneralist 2025-08-03 14:58:05 +02:00
parent 572647d7c4
commit 26fe71c022
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
2 changed files with 299 additions and 285 deletions

View file

@ -1,16 +1,31 @@
{ pkgs, ... }: {
{
pkgs,
lib,
config,
...
}:
{
# TODO: check these out: https://github.com/RGBCube/ncc/blob/86212e148b2642a51814e873a81be73fbc494e86/modules/common/rust.nix#L15-L24
environment.systemPackages = with pkgs; [
(fenix.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
])
rust-analyzer-nightly
environment = {
variables = {
LIBRARY_PATH = lib.mkIf (!config.onLinux) <| lib.makeLibraryPath [ pkgs.libiconv ];
};
nixd
nixfmt-rfc-style
];
systemPackages = with pkgs; [
(fenix.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
])
rust-analyzer-nightly
# for nil
nixd
nixfmt-rfc-style
libiconv
];
};
}