mtwork: autorandr
This commit is contained in:
parent
b1f24f3175
commit
43849f12c6
@ -124,7 +124,6 @@ in {
|
||||
};
|
||||
|
||||
services.autorandr = {
|
||||
enable = true;
|
||||
profiles = {
|
||||
default = {
|
||||
fingerprint = {inherit (randr) eDP-1;};
|
||||
|
@ -5,6 +5,7 @@
|
||||
...
|
||||
}: let
|
||||
nvme = "/dev/disk/by-id/nvme-WD_PC_SN810_SDCQNRY-1T00-1201_23234W800017";
|
||||
randr = import ./randr.nix;
|
||||
in {
|
||||
imports = [
|
||||
../../shared/work
|
||||
@ -125,7 +126,41 @@ in {
|
||||
};
|
||||
|
||||
services = {
|
||||
autorandr.enable = true;
|
||||
autorandr.profiles = {
|
||||
default = {
|
||||
fingerprint = {inherit (randr) eDP-1;};
|
||||
config = {
|
||||
DP-1.enable = false;
|
||||
DP-2.enable = false;
|
||||
DP-3.enable = false;
|
||||
DP-4.enable = false;
|
||||
eDP-1 = {
|
||||
enable = true;
|
||||
primary = true;
|
||||
mode = "1920x1200";
|
||||
crtc = 0;
|
||||
position = "0x0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
work = {
|
||||
fingerprint = {
|
||||
inherit (randr) eDP-1;
|
||||
inherit (randr.work) DP-3;
|
||||
};
|
||||
config = {
|
||||
eDP-1.enable = false;
|
||||
DP-3 = {
|
||||
enable = true;
|
||||
primary = true;
|
||||
mode = "3840x2160";
|
||||
crtc = 1;
|
||||
position = "0x0";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
tlp = {
|
||||
enable = true;
|
||||
|
6
hosts/mtworx/randr.nix
Normal file
6
hosts/mtworx/randr.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
eDP-1 = "00ffffffffffff000e6f041400000000001e0104a51e1378033784a5544d9a240e515500000001010101010101010101010101010101353c80a070b02340302036002ebd10000018000000fd00303c4a4a0f010a202020202020000000fe0043534f542054330a2020202020000000fe004d4e453030374a41312d310a2000b5";
|
||||
work = {
|
||||
DP-3 = "00ffffffffffff001e6d07778068040002200104b53c22789e3e31ae5047ac270c50542108007140818081c0a9c0d1c08100010101014dd000a0f0703e803020650c58542100001a286800a0f0703e800890650c58542100001a000000fd00383d1e8738000a202020202020000000fc004c472048445220344b0a202020017e0203197144900403012309070783010000e305c000e3060501023a801871382d40582c450058542100001e565e00a0a0a029503020350058542100001a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000029";
|
||||
};
|
||||
}
|
@ -43,6 +43,8 @@ in {
|
||||
];
|
||||
};
|
||||
|
||||
autorandr.enable = true;
|
||||
|
||||
avahi = {
|
||||
enable = true;
|
||||
nssmdns = true;
|
||||
|
Loading…
Reference in New Issue
Block a user