43 lines
775 B
Nix
43 lines
775 B
Nix
|
{ config, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
|
||
|
imports = [ ./common.nix ./graphical.nix ../users/mat-hm-laptop.nix ];
|
||
|
|
||
|
# enable power management
|
||
|
powerManagement.enable = true;
|
||
|
|
||
|
services = {
|
||
|
upower.enable = true;
|
||
|
xserver = {
|
||
|
# Enable touchpad support.
|
||
|
libinput = {
|
||
|
enable = true;
|
||
|
naturalScrolling = true;
|
||
|
disableWhileTyping = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
# 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;
|
||
|
}
|