mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-12 19:27:17 +00:00
52 lines
987 B
Nix
52 lines
987 B
Nix
{
|
|
pkgs,
|
|
globals,
|
|
...
|
|
}: {
|
|
services.udev.extraRules = ''
|
|
SUBSYSTEM=="usb", ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6001", MODE="0666"
|
|
'';
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
};
|
|
|
|
services.dbus = {
|
|
enable = true;
|
|
packages = [pkgs.dconf];
|
|
};
|
|
|
|
programs.dconf = {
|
|
enable = true;
|
|
};
|
|
|
|
services.printing.enable = true;
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.xserver = {
|
|
enable = true;
|
|
|
|
layout = globals.keyboard.layout;
|
|
xkbVariant = globals.keyboard.variant;
|
|
|
|
synaptics.enable = false;
|
|
|
|
displayManager.lightdm.enable = false;
|
|
|
|
libinput = {
|
|
enable = true;
|
|
touchpad.tapping = true;
|
|
touchpad.naturalScrolling = true;
|
|
touchpad.scrollMethod = "twofinger";
|
|
touchpad.disableWhileTyping = true;
|
|
touchpad.clickMethod = "clickfinger";
|
|
};
|
|
};
|
|
|
|
sound.enable = true;
|
|
}
|