home/nix: update
This commit is contained in:
parent
78ba2c1364
commit
494a7e30ff
1 changed files with 10 additions and 8 deletions
|
@ -5,6 +5,7 @@
|
||||||
alejandra
|
alejandra
|
||||||
statix
|
statix
|
||||||
deadnix
|
deadnix
|
||||||
|
nixpkgs-fmt # for nixpkgs PRs
|
||||||
|
|
||||||
# Nix helper
|
# Nix helper
|
||||||
nh
|
nh
|
||||||
|
@ -14,19 +15,20 @@
|
||||||
nix-output-monitor
|
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
|
### VSCode
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
userSettings = {
|
extensions = [pkgs.vscode-extensions.jnoortheen.nix-ide];
|
||||||
# Extensions
|
userSettings.nix = {
|
||||||
## Nix IDE
|
enableLanguageServer = true;
|
||||||
nix.enableLanguageServer = true;
|
serverPath = "nil";
|
||||||
### For "nixd" LSP
|
serverSettings.nil = {
|
||||||
nix.serverPath = "nil";
|
|
||||||
nix.serverSettings.nil = {
|
|
||||||
formatting.command = ["alejandra"];
|
formatting.command = ["alejandra"];
|
||||||
nix.flake.autoArchive = true;
|
nix.flake.autoArchive = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
extensions = [pkgs.vscode-extensions.jnoortheen.nix-ide];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue