Wire stasis into the desktop and add its user service

Upstream ships a systemd unit in the Arch package but not in the source
tarball, so it is declared in the module.
This commit is contained in:
2026-08-07 16:21:14 +02:00
parent c0d4b367f0
commit 9fa14f412b
2 changed files with 18 additions and 1 deletions
+1
View File
@@ -164,6 +164,7 @@ in
moonarchPkgs.moonlock
moonarchPkgs.moonset
moonarchPkgs.sweet-cursors
moonarchPkgs.stasis
moonarch-scripts
# Compositor extras
+17 -1
View File
@@ -1,7 +1,7 @@
# ABOUTME: systemd user and system services for the Moonarch session.
# ABOUTME: Rebuilt from defaults/etc/systemd/ because the units use FHS paths.
{ pkgs, lib, ... }:
{ pkgs, lib, moonarchPkgs, ... }:
{
# --- Audio ---
@@ -45,6 +45,22 @@
};
};
# Upstream ships a unit in the Arch package but not in the tarball, so it is
# declared here. Mirrors /usr/lib/systemd/user/stasis.service.
systemd.user.services.stasis = {
description = "Stasis Wayland Idle Manager";
partOf = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
wantedBy = [ "graphical-session.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${lib.getExe moonarchPkgs.stasis}";
ExecReload = "${lib.getExe moonarchPkgs.stasis} reload";
Restart = "on-failure";
RestartSec = 2;
};
};
systemd.user.services.cliphist-text = {
description = "Clipboard history manager (text)";
partOf = [ "graphical-session.target" ];