feat: also create nvidia role, empty for now

This commit is contained in:
Ahwx 2025-03-24 09:24:30 +01:00
parent 5da047a5c9
commit df4fc5e04d

31
roles/nvidia.nix Normal file
View file

@ -0,0 +1,31 @@
{ lib, pkgs, config, ... }:
with lib;
let
cfg = config.liv.nvidia;
in {
options.liv.nvidia = {
enable = mkEnableOption "Enable NVIDIA drivers";
};
config = mkIf cfg.enable {
hardware = {
graphics = {
enable = true;
};
enableRedistributableFirmware = true;
opengl = {
extraPackages = with pkgs; [
# amdvlk
];
# For 32 bit applications as well
extraPackages32 = with pkgs; [
# driversi686Linux.amdvlk
];
};
};
environment.systemPackages = with pkgs; [
# amdvlk
];
};
}