]> Untitled Git - monorepo.git/commitdiff
add user cuda option
authorPreston Pan <preston@nullring.xyz>
Wed, 29 Jan 2025 22:21:26 +0000 (14:21 -0800)
committerPreston Pan <preston@nullring.xyz>
Wed, 29 Jan 2025 22:21:26 +0000 (14:21 -0800)
config/nix.org
nix/modules/home/default.nix
nix/modules/nvidia.nix
nix/systems/affinity/default.nix

index d4434704c6a8fdd3240f690f3b853b1d09f283b0..cac6245aee9b1b310d057e4c4e16ac1e4382eaa7 100644 (file)
@@ -971,6 +971,7 @@ I have many imports that we'll go through next.
        art.enable = lib.mkEnableOption "Enables various art programs";
        music.enable = lib.mkEnableOption "Enables mpd";
        workstation.enable = lib.mkEnableOption "Enables workstation packages (music production and others)";
+       cuda.enable = lib.mkEnableOption "Enables CUDA user package builds";
 
        hyprland = {
                enable = lib.mkEnableOption "Enables hyprland";
@@ -2558,7 +2559,7 @@ This is pretty understandable, if you understand all the above.
 #+end_src
 ** Affinity
 #+begin_src nix :tangle ../nix/systems/affinity/default.nix
-  { config, lib, ... }:
+  { config, lib, home-manager, ... }:
   {
     imports = [
       ../../modules/default.nix
@@ -2570,6 +2571,7 @@ This is pretty understandable, if you understand all the above.
       };
       vars.hostName = "affinity";
     };
+    config.home-manager.users."${config.monorepo.vars.userName}".monorepo.profiles.cuda.enable = true;
   }
 #+end_src
 ** Installer
index 1f87d572f6708113d60dd9d33964225953de3634..a59a5362e132ef88096da425aa35fe86e1c6a847 100644 (file)
@@ -40,6 +40,7 @@
       art.enable = lib.mkEnableOption "Enables various art programs";
       music.enable = lib.mkEnableOption "Enables mpd";
       workstation.enable = lib.mkEnableOption "Enables workstation packages (music production and others)";
+      cuda.enable = lib.mkEnableOption "Enables CUDA user package builds";
 
       hyprland = {
              enable = lib.mkEnableOption "Enables hyprland";
index b59035cd1abde717707982ffb80d74fc01c422de..04d5545bc5ed0b1b27fea353d91df068de86bccf 100644 (file)
@@ -1,7 +1,7 @@
 { config, lib, pkgs, ... }:
 {
   hardware = {
-    opengl.extraPackages = with pkgs; [
+    graphics.extraPackages = with pkgs; [
       vaapiVdpau
       libvdpau-va-gl
       nvidia-vaapi-driver
index 703103d8543974a64006fda41f67a2526f8a4d43..a1871ccb5a2b83d87470c2dbe0d95b04f9931d7f 100644 (file)
@@ -1,4 +1,4 @@
-{ config, lib, ... }:
+{ config, lib, home-manager, ... }:
 {
   imports = [
     ../../modules/default.nix
@@ -10,4 +10,5 @@
     };
     vars.hostName = "affinity";
   };
+  config.home-manager.users."${config.monorepo.vars.userName}".monorepo.profiles.cuda.enable = true;
 }