!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

120 Members
23 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
19 Apr 2025
@gggkiller:matrix.orgGGG *

corruptcomputer:

environment = let
  dotnet-sdk = with dotnetCorePackages; combinePackages [ sdk_9_0 sdk_8_0 ];
  dotnetRoot = "${dotnet-sdk}/share/dotnet";
in {
  etc = {
    "dotnet/install\_location".text = dotnetRoot;
  };

  systemPackages = with pkgs; [
    dotnet-sdk
  ];
};

this is what I do in my config: https://github.com/GGG-KILLER/nixos-configs/blob/3553a0247d667bd3d83937e52d63625ba592c1c5/hosts/sora/system/programs/default.nix#L10-L18

08:14:02
@gggkiller:matrix.orgGGG *

corruptcomputer:

environment = let
  dotnet-sdk = with dotnetCorePackages; combinePackages [ sdk_9_0 sdk_8_0 ];
  dotnetRoot = "${dotnet-sdk}/share/dotnet";
in {
  etc = {
    "dotnet/install_location".text = dotnetRoot;
  };

  systemPackages = with pkgs; [
    dotnet-sdk
  ];
};

this is what I do in my config: https://github.com/GGG-KILLER/nixos-configs/blob/3553a0247d667bd3d83937e52d63625ba592c1c5/hosts/sora/system/programs/default.nix#L10-L18

08:14:11
@upidapi:matrix.orgupidapi joined the room.17:01:44
21 Apr 2025
@corruptcomputer:matrix.orgcorruptcomputerIs that the most up to date way to do it? I saw this on the Wiki from about a week ago and this is what I had based my change on: https://discourse.nixos.org/t/dotnet-maui-workload/20370/24 There really isn't a ton of documentation around dotnet so I'm really not sure what the best way to do it is, and according to other folks on this same forum discussion for it isn't possible to update? Not really sure how thats the case when its a wiki22:54:43

Show newer messages


Back to Room ListRoom Version: 9