summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-08-28 16:48:08 +0200
committerAlan Pearce2019-08-28 16:48:08 +0200
commit1c9f2e4f79c747724ff30da7a7c836ff6c5a8025 (patch)
tree57a1c1489ef73a9023135ea7ca3b6f30151a5988
parent5138ed9bfa6a4e822d091519f2a7afaeee5692ca (diff)
downloadnixos-configuration-1c9f2e4f79c747724ff30da7a7c836ff6c5a8025.tar.lz
nixos-configuration-1c9f2e4f79c747724ff30da7a7c836ff6c5a8025.tar.zst
nixos-configuration-1c9f2e4f79c747724ff30da7a7c836ff6c5a8025.zip
T470s: set DPI once
-rw-r--r--modules/machines/t470s.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/modules/machines/t470s.nix b/modules/machines/t470s.nix
index c4a9286..e0b4942 100644
--- a/modules/machines/t470s.nix
+++ b/modules/machines/t470s.nix
@@ -43,14 +43,17 @@
   #   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