home: add ./resources/lang
This commit is contained in:
parent
128fec457c
commit
01b92592ad
5 changed files with 41 additions and 9 deletions
|
@ -66,11 +66,6 @@
|
||||||
fd
|
fd
|
||||||
freshfetch
|
freshfetch
|
||||||
hyperfine
|
hyperfine
|
||||||
|
|
||||||
# lsp
|
|
||||||
nil
|
|
||||||
gopls
|
|
||||||
libclang
|
|
||||||
])
|
])
|
||||||
++ (with pkgs.gnome; [
|
++ (with pkgs.gnome; [
|
||||||
# GNOME
|
# GNOME
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
../../resources/editor/vscode.nix
|
../../resources/editor/vscode.nix
|
||||||
../../resources/browser/chromium.nix
|
../../resources/browser/chromium.nix
|
||||||
../../resources/browser/librewolf.nix
|
../../resources/browser/librewolf.nix
|
||||||
|
../../resources/lang/nix.nix
|
||||||
|
../../resources/lang/go.nix
|
||||||
|
|
||||||
../../resources/wm/sway.nix
|
../../resources/wm/sway.nix
|
||||||
|
|
||||||
|
|
|
@ -29,15 +29,11 @@
|
||||||
"workbench.colorTheme" = "Tokyo Night";
|
"workbench.colorTheme" = "Tokyo Night";
|
||||||
|
|
||||||
# Extensions
|
# Extensions
|
||||||
### Nix IDE
|
|
||||||
"nix.enableLanguageServer" = true;
|
|
||||||
"nix.serverPath" = "${pkgs.nil}/bin/nil";
|
|
||||||
### GitLens
|
### GitLens
|
||||||
"gitlens.telemetry.enabled" = false;
|
"gitlens.telemetry.enabled" = false;
|
||||||
};
|
};
|
||||||
extensions = with pkgs.vscode-extensions; [
|
extensions = with pkgs.vscode-extensions; [
|
||||||
### LSP
|
### LSP
|
||||||
jnoortheen.nix-ide
|
|
||||||
#ms-python.python
|
#ms-python.python
|
||||||
rust-lang.rust-analyzer
|
rust-lang.rust-analyzer
|
||||||
tamasfe.even-better-toml
|
tamasfe.even-better-toml
|
||||||
|
|
21
users/guanranwang/home-manager/resources/lang/go.nix
Normal file
21
users/guanranwang/home-manager/resources/lang/go.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
### Compiler
|
||||||
|
go
|
||||||
|
### LSP
|
||||||
|
gopls
|
||||||
|
];
|
||||||
|
|
||||||
|
# Make Go follow XDG
|
||||||
|
# "$HOME/go"...
|
||||||
|
xdg.configFile = {
|
||||||
|
"go/env".text = ''
|
||||||
|
GOPATH=${config.xdg.cacheHome}/go
|
||||||
|
GOBIN=${config.xdg.stateHome}/go/bin
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
18
users/guanranwang/home-manager/resources/lang/nix.nix
Normal file
18
users/guanranwang/home-manager/resources/lang/nix.nix
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
### LSP
|
||||||
|
nil
|
||||||
|
];
|
||||||
|
|
||||||
|
### VSCode
|
||||||
|
programs.vscode = {
|
||||||
|
userSettings = {
|
||||||
|
### Nix IDE
|
||||||
|
"nix.enableLanguageServer" = true;
|
||||||
|
"nix.serverPath" = "${pkgs.nil}/bin/nil";
|
||||||
|
};
|
||||||
|
extensions = with pkgs.vscode-extensions; [
|
||||||
|
jnoortheen.nix-ide
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue