summaryrefslogtreecommitdiff
path: root/modules/apps/astal.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-27 21:32:13 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-27 21:32:13 -0400
commit3882671ed5fac06349a7a9368451f478b9276cd8 (patch)
tree899a3a4fcc2ee31ed2cb537b7cf8aedce1409da5 /modules/apps/astal.nix
parentnew hyprcursor theme (diff)
downloaddotfiles-nix-3882671ed5fac06349a7a9368451f478b9276cd8.tar.gz
dotfiles-nix-3882671ed5fac06349a7a9368451f478b9276cd8.tar.bz2
dotfiles-nix-3882671ed5fac06349a7a9368451f478b9276cd8.zip
astal systemd user service
Diffstat (limited to 'modules/apps/astal.nix')
-rw-r--r--modules/apps/astal.nix23
1 files changed, 9 insertions, 14 deletions
diff --git a/modules/apps/astal.nix b/modules/apps/astal.nix
index e57263e..505fe29 100644
--- a/modules/apps/astal.nix
+++ b/modules/apps/astal.nix
@@ -20,27 +20,22 @@ in {
];
systemd.user.services.astal = {
+ Install = {
+ WantedBy = [config.default.session "tray.target"];
+ };
+
Unit = {
- Description = "Custom Gtk Lua Shell.";
- PartOf = [
- config.default.session
- "tray.target"
- ];
- After = [config.default.session];
ConditionEnvironment = "WAYLAND_DISPLAY";
+ Description = "astal";
+ After = [config.default.session];
+ PartOf = [config.default.session "tray.target"];
};
Service = {
- ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
ExecStart = "${astal.astal.shell}/bin/astal-shell";
- KillMode = "mixed";
- Restart = "on-failure";
+ Restart = "always";
+ RestartSec = "10";
};
-
- Install.WantedBy = [
- config.default.session
- "tray.target"
- ];
};
};
};