mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 03:26:17 +00:00
feat: better quiet boot
This commit is contained in:
31
modules/nixos/hardware/nvidia-nouveau.nix
Normal file
31
modules/nixos/hardware/nvidia-nouveau.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ pkgs, lib, config, ... }:
|
||||
with lib;
|
||||
|
||||
let cfg = config.hardware.nvidia.preset.nouveau;
|
||||
|
||||
in {
|
||||
options.hardware.nvidia.preset.nouveau = {
|
||||
enable = mkEnableOption
|
||||
"Enable the free Nouveau NVIDIA driver with some sane defaults";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
boot = {
|
||||
kernelParams = [ "nouveau.modeset=1" ];
|
||||
kernelModules = [ "nouveau" ];
|
||||
initrd.kernelModules = [ "nouveau" ];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
glxinfo
|
||||
libva-utils
|
||||
vulkan-tools
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user