mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Setup monitor
This commit is contained in:
parent
6478868ff0
commit
dfb61b24a6
3 changed files with 76 additions and 17 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue