nixd additional configuration

This commit is contained in:
peturparkur 2025-05-30 23:40:03 +02:00
parent 24ec529102
commit 84e58e64bc
1 changed files with 22 additions and 3 deletions

View File

@ -68,10 +68,29 @@ local Languages = {
}, },
}, },
['nix'] = { ['nix'] = {
nixd = {}, nixd = {
['nil_ls'] = { settings = {
alias = 'nil', nixd = {
nixpkgs = {
expr = 'import <nixpkgs> { }',
},
formatting = {
command = { 'nixfmt' },
},
options = {
nixos = {
expr = '(builtins.getFlake ("git+file://" + toString ./.)).nixosConfigurations.k-on.options',
},
home_manager = {
expr = '(builtins.getFlake ("git+file://" + toString ./.)).homeConfigurations."ruixi@k-on".options',
},
},
},
},
}, },
-- ['nil_ls'] = {
-- alias = 'nil',
-- },
}, },
['bash'] = { ['bash'] = {
bashls = { bashls = {