aboutsummaryrefslogtreecommitdiff
path: root/lsp/nixd.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lsp/nixd.lua')
-rw-r--r--lsp/nixd.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/lsp/nixd.lua b/lsp/nixd.lua
new file mode 100644
index 0000000..6e2d589
--- /dev/null
+++ b/lsp/nixd.lua
@@ -0,0 +1,20 @@
+return {
+ settings = {
+ nixd = {
+ nixpkgs = {
+ expr = "import (builtins.getFlake(toString ./.)).inputs.nixpkgs { }",
+ },
+ formatting = {
+ command = {"alejandra"},
+ },
+ options = {
+ nixos = {
+ expr = "let flake = builtins.getFlake(toString ./.); in flake.nixosConfigurations.skadi.options",
+ },
+ home_manager = {
+ expr = "let flake = builtins.getFlake(toString ./.); in flake.homeConfigurations.skadi.options",
+ },
+ },
+ },
+ },
+}