flake/users/guanranwang/home-manager/applications/nix/default.nix
2023-11-29 20:08:07 +08:00

26 lines
528 B
Nix

{pkgs, ...}: {
home.packages = with pkgs; [
nil # LSP
alejandra # Formatter
sops
nix-output-monitor
];
### VSCode
programs.vscode = {
userSettings = {
# Extensions
## Nix IDE
nix.enableLanguageServer = true;
### For "nixd" LSP
nix.serverPath = "nil";
nix.serverSettings.nil = {
formatting.command = ["alejandra"];
nix.flake.autoArchive = true;
};
};
extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
];
};
}