refactor(nix/hm/price): improve handling of dotnet
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 1m10s

This commit is contained in:
Price Hiller 2024-06-12 07:07:19 -05:00
parent a8f2e16dbc
commit 490d375e29
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
3 changed files with 22 additions and 8 deletions

View File

@ -0,0 +1,16 @@
{ pkgs, config, ... }:
{
home = {
packages = with pkgs; [
dotnet-sdk_8
csharp-ls
];
sessionVariables = rec {
OMNISHARPHOME = "${config.xdg.configHome}/omnisharp";
NUGET_PACKAGES = "${config.xdg.dataHome}/NuGetPackages";
DOTNET_ROOT = "${config.xdg.dataHome}/Dotnet";
DOTNET_CLI_HOME = DOTNET_ROOT;
DOTNET_CLI_TELEMETRY_OPTOUT = 1;
};
};
}

View File

@ -139,13 +139,13 @@ fi
export PATH="${PATH}:${CARGO_HOME}/bin"
## Dotnet ###
export DOTNET_CLI_HOME="${XDG_DATA_HOME}/dotnet"
export DOTNET_ROOT="${XDG_DATA_HOME}/dotnet"
export PATH="${PATH}:${XDG_DATA_HOME}/dotnet"
export DOTNET_ROOT="${DOTNET_ROOT:-"$XDG_DATA_HOME/dotnet"}"
export DOTNET_CLI_HOME="${DOTNET_ROOT}"
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export NUGET_PACKAGES="${XDG_DATA_HOME}/NugetPackages"
export OMNISHARPHOME="${XDG_CONFIG_HOME}/omnisharp"
export PATH="${PATH}:${HOME}/.dotnet/tools"
export NUGET_PACKAGES="${NUGET_PACKAGES:-"$XDG_DATA_HOME/NugetPackages"}"
export OMNISHARPHOME="${OMNISHARPHOME:-"$XDG_CONFIG_HOME/omnisharp"}"
export PATH="${PATH}:${DOTNET_ROOT}"
export PATH="${PATH}:${DOTNET_CLI_HOME}/tools"
### Go ###
export GOPATH="${XDG_DATA_HOME}/go"

View File

@ -34,7 +34,6 @@ in
deno
powershell
vesktop
csharp-ls
vimiv-qt
kooha
libreoffice-fresh
@ -62,7 +61,6 @@ in
swaylock-effects
luajit
imagemagick
dotnet-sdk_8
shellcheck
openjdk
nodejs