diff --git a/flake.nix b/flake.nix index e92f740..64f91b5 100644 --- a/flake.nix +++ b/flake.nix @@ -52,9 +52,18 @@ "DP-1,3840x2160@60,2560x0,1" # 4K monitor to the right ]; - # Set workspace 1 on the main monitor + # Assign workspaces to specific monitors wayland.windowManager.hyprland.settings.workspace = [ "1, monitor:DP-2, default:true" + "2, monitor:DP-1" + "3, monitor:DP-2" + "4, monitor:DP-1" + "5, monitor:DP-2" + "6, monitor:DP-1" + "7, monitor:DP-2" + "8, monitor:DP-1" + "9, monitor:DP-2" + "10, monitor:DP-1" ]; }; } diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 71e90a1..53384ca 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -11,6 +11,20 @@ networking.hostName = "zeph-desktop"; + # Configure monitors for SDDM (display manager) + # This ensures the login screen appears on the 1440p monitor + services.displayManager.sddm.settings = { + General = { + DisplayServer = "wayland"; + }; + }; + + # Create a Hyprland config for SDDM to set monitor order + environment.etc."sddm/hyprland.conf".text = '' + monitor=DP-2,2560x1440@165,0x0,1 + monitor=DP-1,3840x2160@60,2560x0,1 + ''; + # Desktop-specific packages (gaming, streaming, etc.) environment.systemPackages = with pkgs; [ # Add desktop-specific packages here