From 30f042d595f7848df40cfbf558fb7d04888042c6 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 18 Dec 2025 13:24:47 -0500 Subject: astal: only for hyprland --- home/apps/astal.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/home/apps/astal.nix b/home/apps/astal.nix index c7be724..f9bf7b4 100644 --- a/home/apps/astal.nix +++ b/home/apps/astal.nix @@ -9,6 +9,9 @@ astal = inputs.self.packages.${system}; inherit (lib) mkIf; cfg = config.apps.astal; + + # astal is hyprland only + session = "hyprland-session.target"; in { config = mkIf cfg.enable { default.appLauncher = lib.mkDefault "astal-launcher"; @@ -20,14 +23,14 @@ in { systemd.user.services.astal = { Install = { - WantedBy = [config.default.session "tray.target"]; + WantedBy = [session "tray.target"]; }; Unit = { ConditionEnvironment = "WAYLAND_DISPLAY"; Description = "astal"; - After = [config.default.session]; - PartOf = [config.default.session "tray.target"]; + After = [session]; + PartOf = [session "tray.target"]; }; Service = { -- cgit v1.2.3-freya