From 9d703dc8fa9005401dac126e12429fa9bc638397 Mon Sep 17 00:00:00 2001 From: Stefan Ellmauthaler Date: Fri, 29 Apr 2022 16:42:30 +0200 Subject: [PATCH] Add option for dpi based on hostname --- layer/graphical.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layer/graphical.nix b/layer/graphical.nix index b8de6b1..2631d65 100644 --- a/layer/graphical.nix +++ b/layer/graphical.nix @@ -2,6 +2,7 @@ let isgraphical = config.variables.graphical; cursorsize = if config.variables.hostName == "nucturne" then 14 else 16; + xserverDPI = if config.variables.hostName == "stel-xps" then 180 else null; in { networking.networkmanager.enable = isgraphical; @@ -9,7 +10,7 @@ in services = { xserver = { enable = isgraphical; - dpi = 180; + dpi = xserverDPI; displayManager.lightdm = { enable = isgraphical; greeters.gtk.cursorTheme.size = cursorsize;