Skip to content

Commit

Permalink
docs: update README.md for nixd updates
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc authored Apr 23, 2024
1 parent d170b94 commit db4a701
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,18 @@ Pass settings to the language server via `serverSettings`.
"nix.serverSettings": {
// settings for 'nixd' LSP
"nixd": {
"eval": {
// stuff
},
"formatting": {
"command": "nixpkgs-fmt"
"command": [ "nixpkgs-fmt" ]
},
"options": {
"enable": true,
"target": {
// tweak arguments here
"args": [],
// NixOS options
"installable": "<flakeref>#nixosConfigurations.<name>.options"

// Flake-parts options
// "installable": "<flakeref>#debug.options"

// Home-manager options
// "installable": "<flakeref>#homeConfigurations.<name>.options"
// By default, this entriy will be read from `import <nixpkgs> { }`
// You can write arbitary nix expression here, to produce valid "options" declaration result.
// Tip: for flake-based configuration, utilize `builtins.getFlake`
"nixos": {
"expr": "(builtins.getFlake \"/absolute/path/to/flake\").nixosConfigurations.<name>.options"
},
"home-manager": {
"expr": "(builtins.getFlake \"/absolute/path/to/flake\").homeConfigurations.<name>.options"
}
}
}
Expand Down

0 comments on commit db4a701

Please sign in to comment.