77} :
88
99{
10- config = lib . mkIf ( config . glf . environment . enable && ( config . glf . environment . edition == "studio" || config . glf . environment . edition == "studio-pro" ) ) {
11- systemd . tmpfiles . rules =
12- let
13- rocmEnv = pkgs . symlinkJoin {
14- name = "rocm-combined" ;
15- paths = with pkgs-unstable . rocmPackages ; [
16- rocblas
17- hipblas
18- clr
10+ config = lib . mkIf ( config . glf . environment . enable && ( config . glf . environment . edition == "studio" || config . glf . environment . edition == "studio-pro" ) ) {
11+ systemd . tmpfiles . rules =
12+ let
13+ rocmEnv = pkgs . symlinkJoin {
14+ name = "rocm-combined" ;
15+ paths = with pkgs . rocmPackages ; [
16+ rocblas
17+ hipblas
18+ clr
19+ ] ;
20+ } ;
21+ in [
22+ "L+ /opt/rocm/hip - - - - ${ rocmEnv } "
23+ ] ;
24+
25+ hardware . graphics = {
26+ enable = true ;
27+ extraPackages = with pkgs-unstable ; [
28+ mesa . opencl
1929 ] ;
20- } ;
21- in [
22- "L+ /opt/rocm/hip - - - - ${ rocmEnv } "
23- ] ;
30+ } ;
2431
25- hardware . graphics = {
26- enable = true ;
27- extraPackages = with pkgs-unstable ; [
28- mesa . opencl # Assure que l'implémentation OpenCL de Mesa (Rusticl) est installée
29- ] ;
30- } ;
32+ environment . variables = {
33+ ROC_ENABLE_PRE_VEGA = "1" ;
34+ RUSTICL_ENABLE = "radeonsi" ;
35+ } ;
3136
32- environment . variables = {
33- ROC_ENABLE_PRE_VEGA = "1" ;
34- RUSTICL_ENABLE = "radeonsi" ;
35- } ;
36-
3737 environment . systemPackages =
3838 if config . glf . environment . edition == "studio-pro" then
39- with pkgs-unstable ; [
39+ with pkgs ; [
4040 blender-hip
4141 obs-studio
4242 obs-studio-plugins . obs-vkcapture
@@ -47,7 +47,7 @@ systemd.tmpfiles.rules =
4747 freetube
4848 ]
4949 else
50- with pkgs-unstable ; [
50+ with pkgs ; [
5151 blender-hip
5252 obs-studio
5353 obs-studio-plugins . obs-vkcapture
@@ -57,6 +57,10 @@ systemd.tmpfiles.rules =
5757 audacity
5858 freetube
5959 ] ;
60- } ;
6160
61+ programs . obs-studio = {
62+ enable = true ;
63+ package = pkgs-unstable . obs-studio . override { cudaSupport = true ; } ;
64+ } ;
65+ } ;
6266}
0 commit comments