summaryrefslogtreecommitdiff
path: root/modules
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
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')
-rw-r--r--modules/apps/astal.nix23
-rw-r--r--modules/desktops/hyprland/default.nix1
-rw-r--r--modules/options.nix2
3 files changed, 10 insertions, 16 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"
- ];
};
};
};
diff --git a/modules/desktops/hyprland/default.nix b/modules/desktops/hyprland/default.nix
index 890972a..d001814 100644
--- a/modules/desktops/hyprland/default.nix
+++ b/modules/desktops/hyprland/default.nix
@@ -19,7 +19,6 @@ in {
config = mkIf cfg.hyprland {
desktops.wayland = true;
- default.session = mkDefault "hyprland-session.target";
environment.systemPackages = [
inputs.rose-pine-hyprcursor.packages.${system}.default
diff --git a/modules/options.nix b/modules/options.nix
index d158d53..10af3e5 100644
--- a/modules/options.nix
+++ b/modules/options.nix
@@ -369,7 +369,7 @@ in {
session = mkOption {
type = types.str;
description = "Default systemd graphical session target.";
- default = "wayland-session.target";
+ default = "graphical-session.target";
};
};