mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
23 lines
538 B
Nix
23 lines
538 B
Nix
{config, pkgs, lib, ...}:
|
|
with lib;
|
|
let
|
|
cfg = config.aviallon.hardware.nvidia;
|
|
in {
|
|
|
|
imports = [
|
|
./vgpu.nix
|
|
./proprietary.nix
|
|
./opensource.nix
|
|
];
|
|
|
|
options.aviallon.hardware.nvidia = {
|
|
enable = mkEnableOption "enable Nvidia hardware config";
|
|
useProprietary = mkEnableOption "nvidia proprietary drivers";
|
|
saveAllVram = mkEnableOption "back up all VRAM in /tmp before going to sleep. May reduce artifacts after resuming";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
hardware.opengl.driSupport32Bit = true;
|
|
};
|
|
|
|
}
|