aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/nix.org4
-rw-r--r--nix/modules/home/default.nix1
-rw-r--r--nix/modules/nvidia.nix2
-rw-r--r--nix/systems/affinity/default.nix3
4 files changed, 7 insertions, 3 deletions
diff --git a/config/nix.org b/config/nix.org
index d443470..cac6245 100644
--- a/config/nix.org
+++ b/config/nix.org
@@ -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
diff --git a/nix/modules/home/default.nix b/nix/modules/home/default.nix
index 1f87d57..a59a536 100644
--- a/nix/modules/home/default.nix
+++ b/nix/modules/home/default.nix
@@ -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";
diff --git a/nix/modules/nvidia.nix b/nix/modules/nvidia.nix
index b59035c..04d5545 100644
--- a/nix/modules/nvidia.nix
+++ b/nix/modules/nvidia.nix
@@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }:
{
hardware = {
- opengl.extraPackages = with pkgs; [
+ graphics.extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
nvidia-vaapi-driver
diff --git a/nix/systems/affinity/default.nix b/nix/systems/affinity/default.nix
index 703103d..a1871cc 100644
--- a/nix/systems/affinity/default.nix
+++ b/nix/systems/affinity/default.nix
@@ -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;
}