1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Add option for dpi based on hostname

This commit is contained in:
Stefan Ellmauthaler 2022-04-29 16:42:30 +02:00
parent ffd3b93b51
commit 9d703dc8fa

View File

@ -2,6 +2,7 @@
let let
isgraphical = config.variables.graphical; isgraphical = config.variables.graphical;
cursorsize = if config.variables.hostName == "nucturne" then 14 else 16; cursorsize = if config.variables.hostName == "nucturne" then 14 else 16;
xserverDPI = if config.variables.hostName == "stel-xps" then 180 else null;
in in
{ {
networking.networkmanager.enable = isgraphical; networking.networkmanager.enable = isgraphical;
@ -9,7 +10,7 @@ in
services = { services = {
xserver = { xserver = {
enable = isgraphical; enable = isgraphical;
dpi = 180; dpi = xserverDPI;
displayManager.lightdm = { displayManager.lightdm = {
enable = isgraphical; enable = isgraphical;
greeters.gtk.cursorTheme.size = cursorsize; greeters.gtk.cursorTheme.size = cursorsize;