feat: rearrange home-manager modules
This commit is contained in:
parent
89f6ab94b4
commit
58eae1d229
21 changed files with 44 additions and 30 deletions
43
home/dotnet.nix
Normal file
43
home/dotnet.nix
Normal 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
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue