37 lines
673 B
Nix
37 lines
673 B
Nix
{
|
||
imports = [
|
||
./generated.nix # Include the results of the hardware scan.
|
||
./manual.nix
|
||
];
|
||
|
||
|
||
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.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
|
||
'';
|
||
}
|