mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 09:47:52 +00:00
20 lines
493 B
Nix
20 lines
493 B
Nix
{ config, pkgs, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.aviallon.hardware.nvidia;
|
|
in
|
|
{
|
|
imports = [
|
|
./nvidia
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|