plugins/nixd: Adapt to new options

Note that due to the structure of the code we can't introduce
deprecation warnings, it results in:

  cannot find attribute `plugins.lsp.servers.nixd.settings.XXX`
This commit is contained in:
traxys 2024-05-05 19:08:52 +02:00
parent 2fd3a0493c
commit 908932b53c
3 changed files with 55 additions and 59 deletions

View file

@ -7,30 +7,22 @@
enable = true;
settings = {
eval = {
target = {
args = [
"foo"
"bar"
];
installable = "";
};
depth = 0;
workers = 3;
};
nixpkgs.expr = ''
import (builtins.getFlake "/home/lyc/workspace/CS/OS/NixOS/flakes").inputs.nixpkgs { }
'';
formatting = {
command = "nixpkgs-fmt";
command = [ "nixpkgs-fmt" ];
};
options = {
enable = true;
target = {
args = [
"yes"
"no"
"maybe"
];
installable = "";
};
nixos.expr = ''
(builtins.getFlake "/home/lyc/flakes").nixosConfigurations.adrastea.options
'';
home-manager.expr = ''
(builtins.getFlake "/home/lyc/flakes").homeConfigurations."lyc@adrastea".options
'';
};
};
};