aerial: nvidia
This commit is contained in:
parent
66efc3af7b
commit
d2b07816a4
2 changed files with 26 additions and 0 deletions
25
nixos/features/nvidia.nix
Normal file
25
nixos/features/nvidia.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
{ lib, config, pkgs, ... }: {
|
||||||
|
hardware.opengl = {
|
||||||
|
enable = true;
|
||||||
|
driSupport = true;
|
||||||
|
driSupport32Bit = true;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
vaapiVdpau
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
|
|
||||||
|
hardware.nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
|
||||||
|
powerManagement.enable = false;
|
||||||
|
powerManagement.finegrained = false;
|
||||||
|
|
||||||
|
open = false;
|
||||||
|
|
||||||
|
nvidiaSettings = true;
|
||||||
|
|
||||||
|
package = lib.mkDefault config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
};
|
||||||
|
}
|
|
@ -6,6 +6,7 @@
|
||||||
../../features/xfce.nix
|
../../features/xfce.nix
|
||||||
../../features/tailscale.nix
|
../../features/tailscale.nix
|
||||||
../../features/sound
|
../../features/sound
|
||||||
|
../../features/nvidia.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.users.noe = import ../../../home-manager/noe/hosts/aerial.nix;
|
home-manager.users.noe = import ../../../home-manager/noe/hosts/aerial.nix;
|
||||||
|
|
Loading…
Add table
Reference in a new issue