feat(dotnet): disable config and move to templates

This commit is contained in:
Felix Schröter 2020-09-09 19:00:05 +02:00
parent c42f889863
commit fdafcbf202
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
4 changed files with 1 additions and 2 deletions

1
templates/README.md Normal file
View file

@ -0,0 +1 @@
Contains nix configs for common project environments.

20
templates/dotnet.nix Normal file
View file

@ -0,0 +1,20 @@
{ config, pkgs, ... }:
with pkgs;
let
dotnet-combined = with dotnetCorePackages; combinePackages [ sdk_3_1 sdk_2_1 ];
dotnetRoot = "${dotnet-combined}";
dotnetSdk = "${dotnet-combined}/sdk";
dotnetBinary = "${dotnetRoot}/bin/dotnet";
in
{
home.packages = [
dotnet-combined
];
home.sessionVariables = {
DOTNET_ROOT = dotnetRoot;
MSBuildSdksPath = "${dotnetSdk}/$(${dotnetBinary} --version)/Sdks";
MSBUILD_EXE_PATH = "${dotnetSdk}/$(${dotnetBinary} --version)/MSBuild.dll";
};
}