Update OS
All checks were successful
check / check (push) Successful in 50s

This commit is contained in:
Florian RICHER 2025-06-20 22:35:15 +02:00
parent 312448af7f
commit d3ad226556
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
5 changed files with 82 additions and 90 deletions

View file

@ -11,6 +11,8 @@ in
'';
};
config = mkIf cfg.enable {
warnings = [ "home(editors.vscode): C# support disabled for now. Can be re-enabled when this issue is resolved https://github.com/NixOS/nixpkgs/issues/418521" ];
# Inspired by https://github.com/khaneliman/khanelinix/blob/1cc1ff0435671804666cdc732a0b792178441e2f/modules/home/programs/graphical/editors/vscode/default.nix
programs.vscode = {
enable = true;
@ -47,19 +49,20 @@ in
++ [ ms-vscode.cpptools ms-vscode.cmake-tools ms-vscode.cpptools-extension-pack ];
};
C_Sharp = {
extensions =
with pkgs.vscode-extensions;
commonExtensions
++ [ ms-dotnettools.csdevkit ms-dotnettools.csharp ms-dotnettools.vscode-dotnet-runtime ];
};
UnrealEngine = {
extensions =
commonExtensions
++ C_CPP.extensions
++ C_Sharp.extensions;
};
# NOTE: Don't compile, missing libxml2 ? See https://github.com/NixOS/nixpkgs/issues/418521
# C_Sharp = {
# extensions =
# with pkgs.vscode-extensions;
# commonExtensions
# ++ [ ms-dotnettools.csdevkit ms-dotnettools.csharp ms-dotnettools.vscode-dotnet-runtime ];
# };
#
# UnrealEngine = {
# extensions =
# commonExtensions
# ++ C_CPP.extensions
# ++ C_Sharp.extensions;
# };
Phoenix = {
extensions =
@ -97,4 +100,4 @@ in
};
};
};
}
}

View file

@ -11,10 +11,12 @@ in
'';
};
config = mkIf cfg.enable {
warnings = [ "system(hardware.graphics.amdgpu): ROCM Disabled for now. Re-enable it when https://github.com/NixOS/nixpkgs/pull/418461 is available" ];
boot.initrd.kernelModules = [ "amdgpu" ];
# Set acceleration to rocm
services.ollama.acceleration = "rocm";
# services.ollama.acceleration = "rocm";
# Load amdgpu driver for Xorg and Wayland
services.xserver = {
@ -22,10 +24,11 @@ in
videoDrivers = ["amdgpu"];
};
# NOTE: Fixed when https://github.com/NixOS/nixpkgs/pull/418461 is available
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [ rocmPackages.clr.icd ];
# extraPackages = with pkgs; [ rocmPackages.clr.icd ];
};
};
}