Xorg: Difference between revisions
m Fixed minor typo |
m fix indentation |
||
| Line 16: | Line 16: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
# bigger tty fonts | |||
console.font = | |||
"${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; | |||
services.xserver.dpi = 180; | |||
environment.variables = { | |||
## Used by GTK 3 | |||
# `GDK_SCALE` is limited to integer values | |||
GDK_SCALE = "2"; | |||
# Inverse of GDK_SCALE | |||
GDK_DPI_SCALE = "0.5"; | |||
# Used by Qt 5 | |||
QT_AUTO_SCREEN_SCALE_FACTOR = "1"; | |||
_JAVA_OPTIONS = "-Dsun.java2d.uiScale=2"; | |||
}; | |||
# Expose variables to graphical systemd user services | |||
services.xserver.displayManager.importedVariables = [ | |||
"GDK_SCALE" | |||
"GDK_DPI_SCALE" | |||
"QT_AUTO_SCREEN_SCALE_FACTOR" | |||
]; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 51: | Line 51: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
services.xserver = { | |||
enable = true; | |||
... | |||
libinput = { | |||
enable = true; | |||
# disabling mouse acceleration | |||
mouse = { | |||
accelProfile = "flat"; | |||
}; | |||
# disabling touchpad acceleration | |||
touchpad = { | |||
accelProfile = "flat"; | |||
}; | }; | ||
}; | |||
... | |||
}; | |||
</syntaxhighlight> | </syntaxhighlight> | ||