From ad337666ea9253a87d09141d00a99ee6fbd21f95 Mon Sep 17 00:00:00 2001 From: Nathan Date: Sat, 25 Jan 2025 18:32:36 -0600 Subject: [PATCH] hyprland doesn't like headless --- .../nathan/programs/hyprland/default.nix | 3 +- .../configuration/homebox/default.nix | 45 ++++++------------- 2 files changed, 15 insertions(+), 33 deletions(-) diff --git a/home-manager/nathan/programs/hyprland/default.nix b/home-manager/nathan/programs/hyprland/default.nix index 6344f1b..7b671af 100644 --- a/home-manager/nathan/programs/hyprland/default.nix +++ b/home-manager/nathan/programs/hyprland/default.nix @@ -20,7 +20,7 @@ enable = true; systemd = { - enable = false; + enable = true; variables = [ "--all" ]; }; @@ -29,7 +29,6 @@ monitor=eDP-1,1920x1080@60,0x0,1 '' else if config.homeconfig.host == "homebox" then '' monitor=HDMI-A-2,1920x1080@60,0x1080,1 - exec-once=sleep 3 && hyprctl create output headless HEADLESS-2 monitor=HEADLESS-2,1920x1080@60,0x0,1 '' else ''''; in '' diff --git a/system-config/configuration/homebox/default.nix b/system-config/configuration/homebox/default.nix index e99cdf3..a8f88c6 100644 --- a/system-config/configuration/homebox/default.nix +++ b/system-config/configuration/homebox/default.nix @@ -46,19 +46,16 @@ #enable = true; videoDrivers = ["nvidia"]; }; - #displayManager = { - # enable = true; - # defaultSession = "hyprland-uwsm"; - # autoLogin = { - # enable = true; - # user = "nathan"; - # }; - #}; + displayManager = { + enable = true; + defaultSession = "hyprland"; + autoLogin = { + enable = true; + user = "nathan"; + }; + }; }; - programs.hyprland.withUWSM = true; - services.getty.autologinUser = "nathan"; - systemd.extraConfig = "DefaultLimitNOFILE=2048"; environment.sessionVariables = { @@ -90,11 +87,11 @@ LC_TIME = "en_US.UTF-8"; }; - #services.displayManager.sddm.settings.AutoLogin = { - # User = "nathan"; - # Session = "hyprland"; - # Relogin = true; - #}; + services.displayManager.sddm.settings.AutoLogin = { + User = "nathan"; + Session = "hyprland"; + Relogin = true; + }; networking = { hostName = "homebox"; @@ -231,20 +228,6 @@ rofi.enable = true; firefox.enable = true; }; - - config.systemd.user.services.hyprland-autostart = { - Unit = { - Description = "Autostart Hyprland"; - }; - - Service = { - ExecStart = "uwsm start hyprland-uwsm.desktop"; - }; - - Install = { - WantedBy = [ "default.target" ]; - }; - }; } ]; }; @@ -252,7 +235,7 @@ sysconfig = { opts = { - sddm.enable = false; + sddm.enable = true; openssh.enable = true; pipewire.enable = true; ags.enable = true;