mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
xserver with hidpi stuff
This commit is contained in:
parent
7e6530567d
commit
ec163b0a13
1 changed files with 23 additions and 0 deletions
23
hosts/common/optional/xserver.nix
Normal file
23
hosts/common/optional/xserver.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
services.xserver = {
|
||||
dpi = 180;
|
||||
displayManager = {
|
||||
importedVariables = [
|
||||
"GDK_SCALE"
|
||||
"GDK_DPI_SCALE"
|
||||
"QT_AUTO_SCREEN_SCALE"
|
||||
];
|
||||
startx = {
|
||||
enable = true;
|
||||
generateScript = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
GDK_SCALE = "2";
|
||||
GDK_DPI_SCALE = "0.5";
|
||||
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
|
||||
_JAVA_OPTIONS = "-Dsun.java2d.uiScale=2";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue