Files
gooberos/modules/development/packages.nix

41 lines
1001 B
Nix
Raw Normal View History

2026-04-26 13:53:27 +02:00
{ config, pkgs, ... }:
let
hasGui = config.services.dbus.implementation == "dbus";
2026-05-30 13:18:26 +02:00
dotnet-combined = (with pkgs.dotnetCorePackages; combinePackages [
sdk_8_0
sdk_10_0
]).overrideAttrs (finalAttrs: previousAttrs: {
# This is needed to install workload in $HOME
# https://discourse.nixos.org/t/dotnet-maui-workload/20370/2
postBuild = (previousAttrs.postBuild or '''') + ''
for i in $out/sdk/*
do
i=$(basename $i)
mkdir -p $out/metadata/workloads/''${i/-*}
touch $out/metadata/workloads/''${i/-*}/userlocal
done
'';
});
2026-04-28 08:43:16 +02:00
in
2026-03-30 00:20:36 +02:00
{
2026-05-30 13:18:26 +02:00
environment.sessionVariables.DOTNET_ROOT = "${dotnet-combined}";
2026-03-30 00:20:36 +02:00
environment.systemPackages = with pkgs; [
# Languages
nodejs
python3
go
just
nodejs
2026-04-04 18:23:05 +02:00
gcc
2026-05-24 13:09:09 +02:00
# Distrobox
distrobox
distrobox-tui
] ++ (if hasGui then with pkgs; [
wireshark
kontainer
] else []);
2026-04-02 02:44:48 +02:00
}