Switch to a generic configuration + integration for Thor
This commit is contained in:
parent
0426a7e93a
commit
34aefb17a1
9 changed files with 269 additions and 8 deletions
|
|
@ -1,36 +0,0 @@
|
|||
# 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’).
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = builtins.trace "Intel laptop configuration" [
|
||||
./base.nix
|
||||
];
|
||||
|
||||
boot.initrd.kernelModules = [ "i915" ];
|
||||
|
||||
hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;
|
||||
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
vaapiIntel
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
intel-media-driver
|
||||
];
|
||||
|
||||
services.xserver = {
|
||||
displayManager.gdm = {
|
||||
enable = true;
|
||||
wayland = true;
|
||||
};
|
||||
};
|
||||
|
||||
# This runs only Intel and nvidia does not drain power.
|
||||
##### disable nvidia for a very nice battery life.
|
||||
hardware.nvidiaOptimus.disable = true;
|
||||
boot.blacklistedKernelModules = [ "nouveau" "nvidia" ];
|
||||
services.xserver.videoDrivers = [ "intel" ];
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue