feat: rearrange home-manager modules

This commit is contained in:
Felix Schröter 2020-03-13 19:41:55 +01:00 committed by Felix Schroeter
parent 89f6ab94b4
commit 58eae1d229
21 changed files with 44 additions and 30 deletions

43
home/dotnet.nix Normal file
View file

@ -0,0 +1,43 @@
{ config, pkgs, ... }:
with pkgs;
let
dotnet-combined = with dotnetCorePackages; combinePackages [ sdk_3_1 sdk_2_1 ];
dotnetRoot = "${dotnet-combined}/bin";
dotnetSdk = "${dotnet-combined}/sdk";
dotnetBinary = "${dotnetRoot}/dotnet";
in
{
nixpkgs.overlays = [
(self: super: {
omnisharp-roslyn = super.omnisharp-roslyn.overrideAttrs (oldAttrs: rec {
version = "1.34.11";
src = fetchurl {
url = "https://github.com/OmniSharp/omnisharp-roslyn/releases/download/v${version}/omnisharp-mono.tar.gz";
sha256 = "0j55jrji7ya0pm91hfmyd9s6lkl35xbybr81a1gka90mlyp0gx63";
};
});
})
];
home.packages = [
dotnet-combined
omnisharp-roslyn
];
home.sessionVariables = {
DOTNET_ROOT = dotnetRoot;
MSBuildSdksPath = "${dotnetSdk}/$(${dotnetBinary} --version)/Sdks";
MSBUILD_EXE_PATH = "${dotnetSdk}/$(${dotnetBinary} --version)/MSBuild.dll";
};
home.file.".omnisharp/omnisharp.json" = {
text = ''
{
"RoslynExtensionsOptions": {
"EnableAnalyzersSupport": true
}
}
'';
};
}