2024-04-16 02:51:46 +03:00
|
|
|
|
{
|
2024-05-26 00:21:41 +03:00
|
|
|
|
imports = [
|
|
|
|
|
./generated.nix # Include the results of the hardware scan.
|
|
|
|
|
./manual.nix
|
2024-05-18 15:42:44 +03:00
|
|
|
|
];
|
|
|
|
|
|
2024-04-16 02:51:46 +03:00
|
|
|
|
|
2024-05-03 23:50:38 +03:00
|
|
|
|
powerManagement = {
|
|
|
|
|
enable = true;
|
|
|
|
|
powertop.enable = true;
|
|
|
|
|
};
|
|
|
|
|
services.thermald.enable = true;
|
|
|
|
|
services.tlp .enable = true;
|
|
|
|
|
|
2024-04-16 02:51:46 +03:00
|
|
|
|
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 = ''
|
|
|
|
|
# don’t shutdown when power button is short-pressed
|
|
|
|
|
HandlePowerKey=ignore
|
|
|
|
|
'';
|
|
|
|
|
}
|