46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ den, ... }: {
|
|
den.aspects.notebook-specific.nixos = { pkgs, ... }: {
|
|
imports = [ ./_hardware/notebook-hardware.nix ];
|
|
|
|
hardware = {
|
|
graphics = {
|
|
enable = true;
|
|
enable32Bit = true;
|
|
};
|
|
};
|
|
|
|
services.thermald.enable = true;
|
|
powerManagement.enable = true;
|
|
services.tlp = {
|
|
enable = true;
|
|
settings = {
|
|
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
|
};
|
|
};
|
|
|
|
boot = {
|
|
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod"];
|
|
initrd.kernelModules = [];
|
|
kernelModules = ["kvm-intel"];
|
|
initrd.compressor = "zstd";
|
|
loader = {
|
|
grub = {
|
|
enable = true;
|
|
device = "nodev";
|
|
efiSupport = true;
|
|
configurationLimit = 2;
|
|
};
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
};
|
|
|
|
environment.sessionVariables = {
|
|
NIXOS_OZONE_WL = "1";
|
|
MOZ_ENABLE_WAYLAND = "1";
|
|
MOZ_USE_XINPUT2 = "1";
|
|
__GL_SYNC_TO_VBLANK = "0";
|
|
__GL_MaxFramesAllowed = "1";
|
|
};
|
|
};
|
|
}
|