Skyler Grey | f5f7989 | 2023-03-07 13:13:45 +0000 | [diff] [blame] | 1 | { lib, ... }: { |
| 2 | config = { |
| 3 | boot.kernelParams = [ |
| 4 | "video=eDP-1:2256x1440@60" |
| 5 | "video=HDMI-A-1:3840x2160@76" |
| 6 | ]; |
| 7 | services.xserver.config = lib.mkAfter '' |
| 8 | Section "Device" |
| 9 | Identifier "Device-radeon[1]" |
| 10 | Driver "ati" |
| 11 | BusID "PCI:06:00.0" |
| 12 | Option "AllowExternalGpus" "True" |
| 13 | Option "AllowEmptyInitialConfiguration" |
| 14 | EndSection |
| 15 | ''; |
| 16 | }; |
Skyler Grey | 73c4931 | 2023-01-26 00:45:17 +0000 | [diff] [blame] | 17 | home.services.grobi = { |
| 18 | enable = true; |
| 19 | rules = [ |
| 20 | { |
| 21 | name = "Docked"; |
Skyler Grey | f5f7989 | 2023-03-07 13:13:45 +0000 | [diff] [blame] | 22 | outputs_connected = [ "HDMI-A-1" "eDP-1" ]; |
| 23 | configure_column = [ "HDMI-A-1" "eDP-1" ]; |
Skyler Grey | 73c4931 | 2023-01-26 00:45:17 +0000 | [diff] [blame] | 24 | |
| 25 | atomic = true; |
| 26 | primary = "eDP-1"; |
| 27 | } |
| 28 | { |
| 29 | name = "Free"; |
| 30 | outputs_connected = [ "eDP-1" ]; |
Skyler Grey | f5f7989 | 2023-03-07 13:13:45 +0000 | [diff] [blame] | 31 | outputs_disconnected = [ "HDMI-A-1" ]; |
Skyler Grey | 73c4931 | 2023-01-26 00:45:17 +0000 | [diff] [blame] | 32 | configure_single = "eDP-1"; |
| 33 | } |
| 34 | { |
| 35 | name = "Fallback"; |
| 36 | configure_single = "eDP-1"; |
| 37 | } |
| 38 | ]; |
| 39 | }; |
| 40 | } |