home/nix: update

This commit is contained in:
Guanran Wang 2024-02-04 12:03:57 +08:00
parent 78ba2c1364
commit 494a7e30ff
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -5,6 +5,7 @@
alejandra
statix
deadnix
nixpkgs-fmt # for nixpkgs PRs
# Nix helper
nh
@ -14,19 +15,20 @@
nix-output-monitor
];
### nh
# yes, i know, weird and long path
home.sessionVariables.FLAKE = "/home/guanranwang/Documents/Projects/git-repos/github.com/Guanran928/flake";
### VSCode
programs.vscode = {
userSettings = {
# Extensions
## Nix IDE
nix.enableLanguageServer = true;
### For "nixd" LSP
nix.serverPath = "nil";
nix.serverSettings.nil = {
extensions = [pkgs.vscode-extensions.jnoortheen.nix-ide];
userSettings.nix = {
enableLanguageServer = true;
serverPath = "nil";
serverSettings.nil = {
formatting.command = ["alejandra"];
nix.flake.autoArchive = true;
};
};
extensions = [pkgs.vscode-extensions.jnoortheen.nix-ide];
};
}