flake/users/guanranwang/home-manager/modules/lang/nix.nix

25 lines
496 B
Nix
Raw Normal View History

2023-11-06 11:23:58 +00:00
{pkgs, ...}: {
home.packages = with pkgs; [
2023-11-17 12:00:28 +00:00
nil # LSP
alejandra # Formatter
2023-11-06 11:23:58 +00:00
];
### VSCode
programs.vscode = {
userSettings = {
2023-11-17 12:00:28 +00:00
# Extensions
## Nix IDE
nix.enableLanguageServer = true;
### For "nixd" LSP
nix.serverPath = "nil";
nix.serverSettings.nil = {
formatting.command = ["alejandra"];
nix.flake.autoArchive = true;
};
2023-11-06 11:23:58 +00:00
};
extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
];
};
}