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.nix21
1 files changed, 12 insertions, 9 deletions
diff --git a/home/apps/astal.nix b/home/apps/astal.nix
index c7be724..73e90f7 100644
--- a/home/apps/astal.nix
+++ b/home/apps/astal.nix
@@ -2,36 +2,39 @@
lib,
config,
pkgs,
- inputs,
- system,
...
}: let
- astal = inputs.self.packages.${system};
+ astal = pkgs.astal.override {
+ inherit (config.options) theme;
+ };
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";
home.packages = [
- astal.astal.shell
- astal.astal.launcher
+ astal.shell
+ astal.launcher
];
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 = {
- ExecStart = "${astal.astal.shell}/bin/astal-shell";
+ ExecStart = "${astal.shell}/bin/astal-shell";
Restart = "always";
RestartSec = "10";
};