feat(dotnet): disable config and move to templates
This commit is contained in:
parent
c42f889863
commit
fdafcbf202
4 changed files with 1 additions and 2 deletions
templates
1
templates/README.md
Normal file
1
templates/README.md
Normal file
|
@ -0,0 +1 @@
|
|||
Contains nix configs for common project environments.
|
20
templates/dotnet.nix
Normal file
20
templates/dotnet.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue