!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

99 Members
22 Servers

Load older messages


SenderMessageTime
21 Apr 2025
@gggkiller:matrix.orgGGGno problem!23:17:33
@gggkiller:matrix.orgGGGI'm considering making a dotnet module to help people have a good .NET setup and avoid some of those pitfalls I mentioned (fixed env var, using runtime and sdk at the same time, etc.)23:18:11
@corruptcomputer:matrix.orgcorruptcomputer that would be fantastic if possible, something like environment.development.dotnet.enable = true; or similar would be so nice to have 23:19:35
@gggkiller:matrix.orgGGG I was thinking of something like programs.dotnet.enable = true and then you pick the versions you want and it'll configure env vars, files in /etc and stuff to make it work properly 23:20:08
@gggkiller:matrix.orgGGGthen later on when MS finally figures out how they're gonna let distros package workloads it could tap onto that as well23:20:23
@corruptcomputer:matrix.orgcorruptcomputerOh wait a minute, is it not possible to install the aspire workload with this?23:21:11
@corruptcomputer:matrix.orgcorruptcomputerI need that for my app to work...23:21:17
@gggkiller:matrix.orgGGG since the directory where .NET lives is read-only, dotnet workload install doesn't work 23:21:30
@gggkiller:matrix.orgGGGI have no idea how to get workloads working with .NET in NixOS since I haven't used them myself23:21:44
@gggkiller:matrix.orgGGGoh nevermind23:22:10
@gggkiller:matrix.orgGGG apparently userlocal file instructs .NET to do the install per user 23:22:23
@gggkiller:matrix.orgGGGso it should be fine, my bad23:22:28
@corruptcomputer:matrix.orgcorruptcomputerOh nice, ok thats good then23:22:35
@corruptcomputer:matrix.orgcorruptcomputerYeah I am not super happy with the way workloads are handled, imo they should really be bundled with dotnet proper but I'm not MS so I can't change that :/23:23:14
@corruptcomputer:matrix.orgcorruptcomputerI've had so many issues with updating dotnet, forgetting to update the workloads, and the app just failing every build until I remembered to do that23:23:32
@gggkiller:matrix.orgGGGhaving optional components is good to keep size and dependencies down, but it's annoying how they have their own package management solution instead of delegating it to distros23:23:54
@gggkiller:matrix.orgGGGthey seem to have plans to let distros package them, but I don't know at which stage that is at right now23:24:11
@6pak:matrix.org6pakor just making them regular project deps23:24:22
@6pak:matrix.org6pakbut keep in mind you have to do it yourself23:24:31
@6pak:matrix.org6pakin your nixos config23:24:36
@6pak:matrix.org6pakanother thing a nixos module could handle23:24:44
@gggkiller:matrix.orgGGGdo what in your nixos config exactly?23:24:54
@gggkiller:matrix.orgGGGI think corngood changed the SDK to have that file by default iirc23:25:07
@6pak:matrix.org6pakoh23:25:12
@6pak:matrix.org6pakthe source built ones might have them sure23:25:16
@6pak:matrix.org6pakI use the binary sdks23:25:20
@gggkiller:matrix.orgGGGoh, the binary ones don't? we should change the install script to fix that23:25:38
@6pak:matrix.org6pakactually I don't see the userlocal file in source built sdks either?23:27:03
@6pak:matrix.org6pakoh, only 1xx feature band is source built, right23:27:47
@corruptcomputer:matrix.orgcorruptcomputerSo out of curiosity, if I were wanting to try to contribute to NixOS, how would I do that? I've never contributed to a distro before, but NixOS to me seems like it might be a good place to start since everything is defined as code so I'm hoping it'll be a lot more familiar to me as a developer than other distros are23:28:10

Show newer messages


Back to Room ListRoom Version: 9