diff --git a/hosts/snowhawk/hardware-configuration.nix b/hosts/snowhawk/hardware-configuration.nix index 43e4109..85a6112 100644 --- a/hosts/snowhawk/hardware-configuration.nix +++ b/hosts/snowhawk/hardware-configuration.nix @@ -1,4 +1,4 @@ -{ config, lib, modulesPath, ... }: +{ config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; @@ -34,10 +34,34 @@ # Load nvidia driver for Xorg and Wayland services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ]; services.xserver.dpi = lib.mkDefault 96; - services.xserver.xrandrHeads = [ - "HDMI-0" - { output = "DP-0"; primary = true; } - ]; + # services.xserver.xrandrHeads = [ + # { output = "HDMI-0"; } + # { + # output = "DP-0"; + # primary = true; + # monitorConfig = '' + # Option "Position" "1920 0" + # ''; + # } + # ]; + + + systemd.user.services.screenlayout = { + script = '' + ${pkgs.xorg.xrandr}/bin/xrandr \ + --output DP-0 --primary --mode 1920x1080 --pos 1922x0 --rotate normal \ + --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal \ + --output DP-1 --off \ + --output DP-2 --off \ + --output DP-3 --off \ + --output DP-4 --off \ + --output DP-5 --off \ + --output HDMI-1 --off + ''; + wantedBy = [ "graphical-session.target" ]; + partOf = [ "graphical-session.target" ]; + }; + hardware.nvidia = { diff --git a/modules/dwm.nix b/modules/dwm.nix index 4173659..eefea6d 100644 --- a/modules/dwm.nix +++ b/modules/dwm.nix @@ -23,22 +23,6 @@ in fade = false; }; - # systemd.user.services.screenlayout = { - # script = '' - # ${pkgs.xorg.xrandr}/bin/xrandr \ - # --output DP-0 --primary --mode 1920x1080 --pos 1922x0 --rotate normal \ - # --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal \ - # --output DP-1 --off \ - # --output DP-2 --off \ - # --output DP-3 --off \ - # --output DP-4 --off \ - # --output DP-5 --off \ - # --output HDMI-1 --off - # ''; - # wantedBy = [ "graphical-session.target" ]; - # partOf = [ "graphical-session.target" ]; - # }; - systemd.user.services.xrootdatetime = { script = '' while true; do