mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
43 lines
1 KiB
Nix
43 lines
1 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
options.myConfig.de.qtile.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.myConfig.de.qtile.enable {
|
|
services.xserver = {
|
|
enable = true;
|
|
|
|
windowManager.qtile.enable = true;
|
|
desktopManager.wallpaper.mode = "fill";
|
|
|
|
xkb = {
|
|
layout = "de";
|
|
variant = "nodeadkeys";
|
|
};
|
|
|
|
libinput = {
|
|
enable = true;
|
|
|
|
touchpad = {
|
|
accelProfile = "adaptive";
|
|
naturalScrolling = true;
|
|
disableWhileTyping = true;
|
|
};
|
|
|
|
mouse = {
|
|
accelProfile = "flat";
|
|
middleEmulation = false;
|
|
};
|
|
};
|
|
};
|
|
|
|
xdg.portal = {
|
|
enable = true;
|
|
extraPortals = [pkgs.xdg-desktop-portal-gtk];
|
|
config.common.default = "*";
|
|
};
|
|
};
|
|
}
|