system/hosts/asus-gl553vd/hardware-configuration/default.nix

43 lines
870 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ ... }:
{
# Include the results of the hardware scan.
imports = [ ./generated.nix ];
# Enable keyboard on the boot
boot.initrd.availableKernelModules = [ "hid_asus" ];
# Enable containers
# See: https://github.com/NixOS/nixpkgs/issues/38676
boot.kernelModules = [ "veth" ];
powerManagement = {
enable = true;
powertop.enable = true;
};
services.thermald.enable = true;
services.tlp .enable = true;
networking = {
useDHCP = false;
interfaces = {
wlp2s0.useDHCP = true;
};
};
# configure mouse and touchpad
services.xserver.libinput = {
enable = true;
touchpad = {
accelSpeed = "0.5";
disableWhileTyping = true;
};
};
hardware.bluetooth.enable = true;
services.logind.extraConfig = ''
# dont shutdown when power button is short-pressed
HandlePowerKey=ignore
'';
}