- Bumped versions in flake.lock (affinity‑nix, nur‑expressions, home‑manager, nixpkgs, stylix). - Switched NVIDIA driver package from stable to beta. - Added Zed `inlay_hints` configuration and rust‑analyzer inlayHints options.
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
username,
|
|
host,
|
|
...
|
|
}: {
|
|
programs.zed-editor.userSettings.lsp = {
|
|
rust-analyzer = {
|
|
binary = {
|
|
path = lib.getExe pkgs.bash;
|
|
arguments = [
|
|
"-c"
|
|
"if [ -e flake.nix ]; then nix develop --command rust-analyzer; else rust-analyzer; fi"
|
|
];
|
|
};
|
|
initialization_options = {
|
|
inlayHints = {
|
|
maxLength = null;
|
|
lifetimeElisionHints = {
|
|
enable = "skip_trivial";
|
|
useParameterNames = true;
|
|
};
|
|
closureReturnTypeHints = {
|
|
enable = "always";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
nixd = {
|
|
initialization_options.formatting.command = [
|
|
"alejandra"
|
|
"--quiet"
|
|
"--"
|
|
];
|
|
settings = {
|
|
nixpkgs.expr = "import <nixpkgs> { }";
|
|
formatting.command = ["alejandra"];
|
|
options = {
|
|
nixos.expr = "(builtins.getFlake (builtins.toString \"/home/${username}/garandos\")).nixosConfigurations.\"${host}\".options";
|
|
home-manager.expr = "(builtins.getFlake (builtins.toString \"/home/${username}/garandos\")).nixosConfigurations.\"${host}\".options.home-manager.users.type.getSubOptions []";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|