-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add quickstart section and revamp README
fixes #432
- Loading branch information
1 parent
152e55d
commit c2b4ecc
Showing
3 changed files
with
68 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"nix.enableLanguageServer": true, | ||
"nix.serverPath": "nil", | ||
"nix.serverSettings": { | ||
"nil": { | ||
"diagnostics": { | ||
"ignored": ["unused_binding", "unused_with"], | ||
}, | ||
"formatting": { | ||
"command": ["nixpkgs-fmt"], | ||
}, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"nix.enableLanguageServer": true, | ||
"nix.serverPath": "nixd", | ||
"nix.serverSettings": { | ||
"nixd": { | ||
"formatting": { | ||
"command": ["nixpkgs-fmt"], | ||
}, | ||
"options": { | ||
// By default, this entry will be read from `import <nixpkgs> { }`. | ||
// You can write arbitrary Nix expressions 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", | ||
}, | ||
// Tip: use ${workspaceFolder} variable to define path | ||
"nix-darwin": { | ||
"expr": "(builtins.getFlake \"${workspaceFolder}/path/to/flake\").darwinConfigurations.<name>.options", | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |