summaryrefslogtreecommitdiff
path: root/home/apps/astal.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-09-17 22:07:16 -0400
committerFreya Murphy <freya@freyacat.org>2025-09-17 22:07:16 -0400
commit68d03fe362b7e0df11662d8d6a1e01eac0bfae77 (patch)
treea76abd05f662f73b4083ddb0d8bf0d72c29e5a74 /home/apps/astal.nix
parentupdate commits (diff)
downloaddotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.tar.gz
dotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.tar.bz2
dotfiles-nix-68d03fe362b7e0df11662d8d6a1e01eac0bfae77.zip
refactor: remove modules folder, fully split home and system modules
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";
+ };
+ };
+ };
+}