summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-12-18 13:24:47 -0500
committerFreya Murphy <freya@freyacat.org>2025-12-18 13:24:47 -0500
commit30f042d595f7848df40cfbf558fb7d04888042c6 (patch)
tree5ad73bc8d6a43b9f7420fa06f86627bbe6681ea2
parentsystem: use tmpfs (diff)
downloaddotfiles-nix-30f042d595f7848df40cfbf558fb7d04888042c6.tar.gz
dotfiles-nix-30f042d595f7848df40cfbf558fb7d04888042c6.tar.bz2
dotfiles-nix-30f042d595f7848df40cfbf558fb7d04888042c6.zip
astal: only for hyprland
-rw-r--r--home/apps/astal.nix9
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 = {