2021-01-11 03:59:20 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
2021-01-11 04:44:24 +00:00
|
|
|
imports =
|
|
|
|
[ ./common.nix ./local.nix ./graphical.nix ../users/mat-hm-laptop.nix ];
|
2021-01-11 03:59:20 +00:00
|
|
|
|
|
|
|
# enable power management
|
|
|
|
powerManagement.enable = true;
|
|
|
|
|
|
|
|
services = {
|
|
|
|
upower.enable = true;
|
|
|
|
xserver = {
|
|
|
|
# Enable touchpad support.
|
|
|
|
libinput = {
|
|
|
|
enable = true;
|
2021-05-05 15:21:02 +00:00
|
|
|
touchpad = {
|
|
|
|
naturalScrolling = true;
|
|
|
|
disableWhileTyping = false;
|
|
|
|
};
|
2021-01-11 03:59:20 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable sound.
|
|
|
|
sound.enable = true;
|
|
|
|
|
|
|
|
# Hardware switches
|
|
|
|
hardware = {
|
|
|
|
logitech.wireless = {
|
|
|
|
enable = true;
|
|
|
|
# enableGraphical = true;
|
|
|
|
};
|
|
|
|
opengl = {
|
|
|
|
driSupport32Bit = true;
|
|
|
|
extraPackages32 = [ pkgs.pkgsi686Linux.libva ];
|
|
|
|
};
|
|
|
|
pulseaudio = {
|
|
|
|
enable = true;
|
|
|
|
support32Bit = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
}
|