1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

refactor: move nvidia settings to hardware/nvidia

This commit is contained in:
oddlama 2023-09-04 17:19:04 +02:00
parent ae62336669
commit 0eb6ac95e4
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
5 changed files with 13 additions and 18 deletions

View file

@ -12,6 +12,7 @@
inputs.nixos-hardware.nixosModules.common-pc-ssd
../../modules/optional/hardware/physical.nix
../../modules/optional/hardware/nvidia.nix
../../modules
../../modules/optional/boot-efi.nix
@ -30,21 +31,7 @@
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
hardware.nvidia.modesetting.enable = true;
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
hardware.nvidia.powerManagement.enable = true;
hardware.nvidia.open = false;
hardware.nvidia.nvidiaSettings = true;
environment.systemPackages = with pkgs; [
killall
vaapiVdpau
libvdpau-va-gl
];
# TODO goodbye once -sk keys.
environment.shellInit = ''
gpg-connect-agent /bye
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)