37 lines
729 B
Nix
37 lines
729 B
Nix
|
{ ... }:
|
|||
|
|
|||
|
{
|
|||
|
# 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" ];
|
|||
|
|
|||
|
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
|
|||
|
'';
|
|||
|
}
|