dotfiles/nixos/common-services.nix

46 lines
828 B
Nix

{
config,
pkgs,
...
}: {
console.keyMap = "pl2";
imports = [./tailscale];
services = {
udev.packages = [pkgs.android-udev-rules];
ratbagd.enable = true;
fwupd = {
enable = true;
package = pkgs.fwupd;
};
power-profiles-daemon.enable = true;
upower.enable = true;
fstrim.enable = true;
avahi = {
enable = true;
nssmdns = true;
};
geoclue2.enable = true;
xserver = {
enable = true;
layout = "pl";
xkbOptions = "caps:ctrl_modifier";
xkbVariant = "";
libinput = {
enable = true;
touchpad = {
naturalScrolling = false;
disableWhileTyping = true;
};
};
deviceSection = ''
Option "TearFree" "true"
Option "AccelMethod" "sna"
'';
};
};
}