Sender | Message | Time |
---|---|---|
10 Apr 2025 | ||
14:47:27 | ||
can somebody with commit permissions take a look at this PR? https://github.com/NixOS/nixpkgs/pull/257489 I'd really want to get going on removing the deprecated | 20:54:02 | |
the right room for that is #review-requests:nixos.org | 22:51:51 | |
19 Apr 2025 | ||
02:47:34 | ||
Could someone please help me figure out how to get the dotnet sdk to work on NixOS? Neither wiki has any usable information on getting this setup, so I've basically just guessed at which packages I found when searching for 'dotnet' on search.nixos.org were the correct ones. The names of these seemed the most correct to me and thats all I picked based on, so if these aren't right please let me know I have the following in my configuration.nix (removed the unrelated parts):
I've added the dotnet-sdk_9 dotnet root since the wiki said thats what to do if its not found, but that doesn't seem to have any effect. Its still not able to access the sdk unless I cd to that dir and use the filesystem local dotnet instead of the system one:
| 03:14:52 | |
* Could someone please help me figure out how to get the dotnet sdk to work on NixOS? Neither wiki has any usable information on getting this setup, seems to assume you're trying to build a dotnet nix package instead of actually use dotnet on your system. So I've basically just guessed at which packages I found when searching for 'dotnet' on search.nixos.org were the correct ones. The names of these seemed the most correct to me and thats all I picked based on, so if these aren't right please let me know I have the following in my configuration.nix (removed the unrelated parts):
I've added the dotnet-sdk_9 dotnet root since the wiki said thats what to do if its not found, but that doesn't seem to have any effect. Its still not able to access the sdk unless I cd to that dir and use the filesystem local dotnet instead of the system one:
| 03:22:11 | |
Ah finally got it figured out, changing the packages to the following fixed it
| 07:38:26 | |
you actually need to have the SDK and no runtimes | 08:10:20 | |
corruptcomputer: ``` systemPackages = with pkgs; [
| 08:13:21 | |
*
| 08:13:27 | |
*
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 | |
*
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 | |
17:01:44 | ||
21 Apr 2025 | ||
Is 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 wiki | 22:54:43 | |
* Is that the most up to date way to do it? I saw this on the forum 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 wiki | 22:54:52 | |
it is the way I use myself. I prefer using a file in /etc because env vars require restarting your window manager or something similar to update them | 22:55:18 | |
but you shouldn't mix sdk_X_Y , runtime_X_Y , aspnetcore_X_Y packages ever | 22:55:38 | |
you pick one of the three and use that for that version | 22:55:48 | |
* it is the way I use myself. I prefer using a file in /etc because env vars require restarting your desktop manager or something similar to update them | 22:55:57 | |
I need all 3 of them though, I'm developing aspnetcore and desktop applications, so I need to be able to both compile with the sdk and run with the runtime or aspnetcore runtime | 22:56:40 | |
the SDK comes with the runtime and aspnetcore | 22:56:49 | |
aspnetcore comes with the runtime | 22:56:53 | |
runtime is just the runtime | 22:56:56 | |
Ah ok, didn't realize that. Thats a lot different than I'm familiar with on Arch, on Arch you need to install all 3 separately | 22:57:25 | |
does the sdk_X_Y support only specifying the major version? I'd like to always stay up to date with the latest minor version and just pick the major that I'm using | 22:59:04 | |
like sdk_9 or sdk_8 I mean, instead of needing sdk_9_202 or whatever the minor version is | 22:59:37 | |
could see it being very annoying to constantly be updating that | 22:59:50 | |
we don't currently have an option to stick to latest minor, the dotnet_9.sdk is just sdk_9_0 | 22:59:53 | |
202 is the patch, so the actual version is 9.0.202 | 23:00:06 | |
Ah ok so sdk_9_0 will still get me the latest then, thanks! | 23:00:45 |