From 68d03fe362b7e0df11662d8d6a1e01eac0bfae77 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 17 Sep 2025 22:07:16 -0400 Subject: refactor: remove modules folder, fully split home and system modules --- home/apps/astal.nix | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 home/apps/astal.nix (limited to 'home/apps/astal.nix') 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"; + }; + }; + }; +} -- cgit v1.2.3-freya