31 lines
934 B
Nix
31 lines
934 B
Nix
# Edit this configuration file to define what should be installed on
|
||
# your system. Help is available in the configuration.nix(5) man page
|
||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||
{ pkgs, ... }: {
|
||
boot.initrd.kernelModules = [ "i915" ];
|
||
# boot.kernelPackages = pkgs.linuxPackages;
|
||
|
||
services.xserver = {
|
||
videoDrivers = [ "nvidia" ];
|
||
# displayManager.gdm = {
|
||
# enable = true;
|
||
# wayland = false;
|
||
# };
|
||
};
|
||
|
||
services.xserver.displayManager.sddm = {
|
||
enable = true;
|
||
autoNumlock = true;
|
||
theme = "${pkgs.sddm-theme-clairvoyance}/usr/share/sddm/themes/clairvoyance";
|
||
};
|
||
|
||
hardware.nvidia.prime = {
|
||
offload.enable = false;
|
||
sync.enable = true;
|
||
intelBusId = "PCI:0:2:0";
|
||
nvidiaBusId = "PCI:1:0:0";
|
||
};
|
||
# hardware.nvidia.modesetting.enable = true;
|
||
# hardware.nvidia.package = pkgs.linuxPackages.nvidia_x11;
|
||
hardware.opengl.driSupport32Bit = true;
|
||
}
|