Configurations cleanup

Fix home state version
This commit is contained in:
Filippo Berto 2022-12-06 21:50:55 +01:00
parent c6c8c23058
commit abc9f50a30
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
6 changed files with 76 additions and 82 deletions

View file

@ -5,28 +5,23 @@
{ pkgs, ... }:
{
boot.initrd.kernelModules = [ "i915" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
hardware.opengl.enable = true;
hardware.opengl.driSupport = true;
hardware.opengl.extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
# services.xserver.displayManager.gdm.enable = true;
services.xserver.displayManager.sddm = {
enable = true;
autoNumlock = true;
theme = "${pkgs.sddm-theme-clairvoyance}/usr/share/sddm/themes/clairvoyance";
boot = {
initrd.kernelModules = [ "i915" ];
kernelPackages = pkgs.linuxPackages_latest;
blacklistedKernelModules = [ "nouveau" "nvidia" ];
};
# 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;
services.xserver = {
videoDrivers = [ "intel" ];
displayManager.sddm = {
enable = true;
autoNumlock = true;
theme = "${pkgs.sddm-theme-clairvoyance}/usr/share/sddm/themes/clairvoyance";
};
};
}