Skip to content

Latest commit

 

History

History
executable file
·
41 lines (33 loc) · 706 Bytes

File metadata and controls

executable file
·
41 lines (33 loc) · 706 Bytes

DotNet

{ config, pkgs, lib, ... }:
let
  dotnet-sdk = with pkgs.dotnetCorePackages; combinePackages [
    sdk_8_0
    sdk_6_0
  ];
in
{
  home.packages = with pkgs; [
    dotnet-sdk
    nuget
  ];

  home.sessionVariables = {
    DOTNET_ROOT = dotnet-sdk;
    # disable telemetry
    DOTNET_CLI_TELEMETRY_OPTOUT = 1;
  };

  <<<modules/home/packages/developing/dotnet>>>
}

Neovim support

You have to manually install the language server:

dotnet tool install --global csharp-ls
nvimLSP.csharp_ls = [];
home.sessionPath = [
  "${config.home.homeDirectory}/.dotnet/tools"
];