all repos — nixfiles @ 1c9f2e4f79c747724ff30da7a7c836ff6c5a8025

System and user configuration, managed by nix and home-manager

T470s: set DPI once
Alan Pearce alan@alanpearce.eu
Wed, 28 Aug 2019 16:48:08 +0200
commit

1c9f2e4f79c747724ff30da7a7c836ff6c5a8025

parent

5138ed9bfa6a4e822d091519f2a7afaeee5692ca

1 files changed, 10 insertions(+), 7 deletions(-)

jump to
M modules/machines/t470s.nixmodules/machines/t470s.nix
@@ -43,14 +43,17 @@ #   Option      "TearFree"     "true"   #   Option      "TripleBuffer" "false"
   # '';
 
-  services.xserver.monitorSection = ''
-    DisplaySize 310 176
+  services.xserver = {
+    dpi = 109;
+    monitorSection = ''
+      DisplaySize 310 176
 
-    Option "StandbyTime" "0"
-    Option "SuspendTime" "300"
-    Option "OffTime"     "600"
-    Option "BlankTime"   "0"
-  '';
+      Option "StandbyTime" "0"
+      Option "SuspendTime" "300"
+      Option "OffTime"     "600"
+      Option "BlankTime"   "0"
+    '';
+  };
 
   environment.systemPackages = with pkgs; [
     nvme-cli