diff --git a/home/config/nil/bar.nix b/home/config/nil/bar.nix index 68a4e72..7bbd4e3 100644 --- a/home/config/nil/bar.nix +++ b/home/config/nil/bar.nix @@ -321,6 +321,14 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) { }; }; + systemd.user.services = { + waybar = { + Unit = { + After = [ "graphical-session.target" ]; + }; + }; + }; + systemd.user.targets = { tray = { Unit = { diff --git a/home/config/nil/desktop.nix b/home/config/nil/desktop.nix index 865c72e..beda777 100644 --- a/home/config/nil/desktop.nix +++ b/home/config/nil/desktop.nix @@ -273,17 +273,6 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) { SSH_ASKPASS_REQUIRE = "force"; TERMINAL = kitty; }; - - spawn-at-startup = [ - { command = [ dbus-update "--systemd" - "NIRI_SOCKET" - "WAYLAND_DISPLAY" - "XDG_CURRENT_DESKTOP" - "XDG_SESSION_TYPE" - ]; } - { command = [ systemctl "--user" "start" "swayidle.service" ]; } - { command = [ systemctl "--user" "start" "waybar.service" ]; } - ]; }; programs.swaylock = { @@ -329,6 +318,14 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) { services.syncthing.enable = true; + systemd.user.services = { + swayidle = { + Unit = { + After = [ "graphical-session.target" ]; + }; + }; + }; + xdg.mimeApps.enable = true; xdg.portal = {