diff options
| -rw-r--r-- | home/apps/astal.nix | 9 |
1 files 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 = { |