Setup monitor

This commit is contained in:
muon 2025-08-05 14:26:57 +00:00
parent 6478868ff0
commit dfb61b24a6
3 changed files with 76 additions and 17 deletions

View file

@ -1,6 +1,5 @@
{ config, lib, pkgs, inputs, system, sources, modulesPath, ... }:
let cfg = config.mods;
in {
# Hardware
imports = [
@ -44,15 +43,53 @@ in {
};
# Hardware preferences
environment.variables = {
WINIT_HIDPI_FACTOR = "1";
WINIT_X11_SCALE_FACTOR = "1";
};
# environment.variables = {
# WINIT_HIDPI_FACTOR = "1";
# WINIT_X11_SCALE_FACTOR = "1";
# };
## Laptop
powerManagement.enable = true;
services.thermald.enable = true;
services.tlp.enable = true;
services.xserver.dpi = lib.mkForce 180;
environment.variables = {
GDK_SCALE = "2";
GDK_DPI_SCALE = "0.5";
_JAVA_OPTIONS = "-Dsun.java2d.uiScale=2";
};
## Monitors
mods.monitors = {
primary = {
name = "eDP-1";
config = {
enable = true;
mode = "2560x1600";
position = "1264x1440";
primary = true;
rate = "60.00";
};
};
left = {
name = "DP-1-2";
config = {
enable = true;
mode = "2560x1440";
position = "0x0";
rate = "60.00";
};
};
right = {
name = "DP-1-1";
config = {
enable = true;
mode = "2560x1440";
position = "2560x0";
rate = "60.00";
};
};
};
## Mouse
services.libinput.mouse.accelProfile = "flat";