Upgrade flakes, use NVIDIA beta, add Zed inlay hints

- 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.
This commit is contained in:
2025-11-29 19:38:27 +01:00
parent 3f14984072
commit d80266e89a
4 changed files with 38 additions and 16 deletions

30
flake.lock generated
View File

@@ -15,11 +15,11 @@
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1764110097, "lastModified": 1764195413,
"narHash": "sha256-Qt1/+egYCGrn54MRwqijgs3TRfCuoFpPvWNmlwpddik=", "narHash": "sha256-YNehE1Vq7Gntrpl6FYwfHU+8U/5v5OaS/KtiB35AWfE=",
"owner": "mrshmllow", "owner": "mrshmllow",
"repo": "affinity-nix", "repo": "affinity-nix",
"rev": "cdab717798574b30e65a3e5be26b084320f67a79", "rev": "5312de0bb4808e256a346c58ab3607bd7ffc924b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -143,11 +143,11 @@
}, },
"locked": { "locked": {
"dir": "pkgs/firefox-addons", "dir": "pkgs/firefox-addons",
"lastModified": 1764129852, "lastModified": 1764389080,
"narHash": "sha256-9m6e5wAfYvCnuQep5CvTxmV3iaVuH5uSsH+gjKwwZf4=", "narHash": "sha256-BEn1Z9Uv20u2DS6wzLKdzx5kAzynM3wMQ9JnGf3VJvI=",
"owner": "rycee", "owner": "rycee",
"repo": "nur-expressions", "repo": "nur-expressions",
"rev": "97503705aed1f7c5fd3fd8e465a5850928c05102", "rev": "897437c09bf22ce59efb3370f0783d0c662dba31",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@@ -324,11 +324,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1764135300, "lastModified": 1764361670,
"narHash": "sha256-5xOuutXM7UPTUcn3uDAD8UlPQsXmqPrX81cXoDOAGcA=", "narHash": "sha256-jgWzgpIaHbL3USIq0gihZeuy1lLf2YSfwvWEwnfAJUw=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "f4cb25928fafa9ae68660fe71f730fc820a59028", "rev": "780be8ef503a28939cf9dc7996b48ffb1a3e04c6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -372,11 +372,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1763966396, "lastModified": 1764242076,
"narHash": "sha256-6eeL1YPcY1MV3DDStIDIdy/zZCDKgHdkCmsrLJFiZf0=", "narHash": "sha256-sKoIWfnijJ0+9e4wRvIgm/HgE27bzwQxcEmo2J/gNpI=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5ae3b07d8d6527c42f17c876e404993199144b6a", "rev": "2fad6eac6077f03fe109c4d4eb171cf96791faa4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -523,11 +523,11 @@
"tinted-zed": "tinted-zed" "tinted-zed": "tinted-zed"
}, },
"locked": { "locked": {
"lastModified": 1764047889, "lastModified": 1764254063,
"narHash": "sha256-KGP5anhJ+uEv4qFV3UtD1YYVn00/zOqLdVBgSdrzW/c=", "narHash": "sha256-V22JzkaTLF/GAL2LgqvOsJhAr8JbJsKaD8hnHjGwXfE=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "b5072c51308a20214b7eb095b6fd01ee100a8f18", "rev": "a1451bc40413870f0c7b576b751c1ca92055e323",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -36,7 +36,7 @@ in {
# accessible via `nvidia-settings`. # accessible via `nvidia-settings`.
nvidiaSettings = true; nvidiaSettings = true;
# Optionally, you may need to select the appropriate driver version for your specific GPU. # Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.stable; package = config.boot.kernelPackages.nvidiaPackages.beta;
}; };
}; };
}; };

View File

@@ -16,6 +16,16 @@ _: {
enabled = true; enabled = true;
max_severity = "error"; max_severity = "error";
}; };
inlay_hints = {
enabled = true;
show_type_hints = true;
show_parameter_hints = true;
show_other_hints = true;
show_background = false;
edit_debounce_ms = 700;
scroll_debounce_ms = 50;
toggle_on_modifiers_press = null;
};
}; };
imports = [ imports = [

View File

@@ -14,6 +14,18 @@
"if [ -e flake.nix ]; then nix develop --command rust-analyzer; else rust-analyzer; fi" "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 = { nixd = {
initialization_options.formatting.command = [ initialization_options.formatting.command = [