summaryrefslogtreecommitdiff
path: root/home/apps/astal.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/apps/astal.nix')
-rw-r--r--home/apps/astal.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/home/apps/astal.nix b/home/apps/astal.nix
new file mode 100644
index 0000000..0427e61
--- /dev/null
+++ b/home/apps/astal.nix
@@ -0,0 +1,39 @@
+{
+ lib,
+ config,
+ pkgs,
+ inputs,
+ ...
+}: let
+ astal = inputs.self.packages.${pkgs.system};
+ inherit (lib) mkIf;
+ cfg = config.apps.astal;
+in {
+ config = mkIf cfg.enable {
+ default.appLauncher = lib.mkDefault "astal-launcher";
+
+ home.packages = [
+ astal.astal.shell
+ astal.astal.launcher
+ ];
+
+ systemd.user.services.astal = {
+ Install = {
+ WantedBy = [config.default.session "tray.target"];
+ };
+
+ Unit = {
+ ConditionEnvironment = "WAYLAND_DISPLAY";
+ Description = "astal";
+ After = [config.default.session];
+ PartOf = [config.default.session "tray.target"];
+ };
+
+ Service = {
+ ExecStart = "${astal.astal.shell}/bin/astal-shell";
+ Restart = "always";
+ RestartSec = "10";
+ };
+ };
+ };
+}