moving randr to hardware
This commit is contained in:
parent
4118fd205a
commit
3b9cd8ae5f
2 changed files with 19 additions and 15 deletions
|
@ -34,6 +34,10 @@
|
||||||
# Load nvidia driver for Xorg and Wayland
|
# Load nvidia driver for Xorg and Wayland
|
||||||
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ];
|
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ];
|
||||||
services.xserver.dpi = lib.mkDefault 96;
|
services.xserver.dpi = lib.mkDefault 96;
|
||||||
|
services.xserver.xrandrHeads = [
|
||||||
|
"HDMI-0"
|
||||||
|
{ output = "DP-0"; primary = true; }
|
||||||
|
];
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
|
|
||||||
|
|
|
@ -23,21 +23,21 @@ in
|
||||||
fade = false;
|
fade = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services.screenlayout = {
|
# systemd.user.services.screenlayout = {
|
||||||
script = ''
|
# script = ''
|
||||||
${pkgs.xorg.xrandr}/bin/xrandr \
|
# ${pkgs.xorg.xrandr}/bin/xrandr \
|
||||||
--output DP-0 --primary --mode 1920x1080 --pos 1922x0 --rotate normal \
|
# --output DP-0 --primary --mode 1920x1080 --pos 1922x0 --rotate normal \
|
||||||
--output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal \
|
# --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal \
|
||||||
--output DP-1 --off \
|
# --output DP-1 --off \
|
||||||
--output DP-2 --off \
|
# --output DP-2 --off \
|
||||||
--output DP-3 --off \
|
# --output DP-3 --off \
|
||||||
--output DP-4 --off \
|
# --output DP-4 --off \
|
||||||
--output DP-5 --off \
|
# --output DP-5 --off \
|
||||||
--output HDMI-1 --off
|
# --output HDMI-1 --off
|
||||||
'';
|
# '';
|
||||||
wantedBy = [ "graphical-session.target" ];
|
# wantedBy = [ "graphical-session.target" ];
|
||||||
partOf = [ "graphical-session.target" ];
|
# partOf = [ "graphical-session.target" ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
systemd.user.services.xrootdatetime = {
|
systemd.user.services.xrootdatetime = {
|
||||||
script = ''
|
script = ''
|
||||||
|
|
Loading…
Reference in a new issue