{ pkgs, ... }: { # nil (Nix language server) for x1carbon only — wired into VS Code via the # nix-community Nix IDE extension and into opencode (see opencode.nix). home.packages = [ pkgs.nil ]; programs.vscode = { enable = true; profiles.default = { extensions = [ pkgs.vscode-extensions.jnoortheen.nix-ide ]; userSettings = { "nix.enableLanguageServer" = true; "nix.serverPath" = "${pkgs.nil}/bin/nil"; # All nil LSP settings nest under a "nil" key. Formatting shells out # to nixfmt (the flake formatter), reading stdin / writing stdout. "nix.serverSettings" = { nil = { formatting = { command = [ "nixfmt" "-" ]; }; }; }; }; }; }; }