summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorAlan Pearce2019-08-28 16:48:08 +0200
committerAlan Pearce2019-08-28 16:48:08 +0200
commit1c9f2e4f79c747724ff30da7a7c836ff6c5a8025 (patch)
tree57a1c1489ef73a9023135ea7ca3b6f30151a5988 /modules
parent5138ed9bfa6a4e822d091519f2a7afaeee5692ca (diff)
downloadnixfiles-1c9f2e4f79c747724ff30da7a7c836ff6c5a8025.tar.lz
nixfiles-1c9f2e4f79c747724ff30da7a7c836ff6c5a8025.tar.zst
nixfiles-1c9f2e4f79c747724ff30da7a7c836ff6c5a8025.zip
T470s: set DPI once
Diffstat (limited to 'modules')
-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 c4a92869..e0b49427 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