]> git.giacomolli.uk - onechat/commit
Package a systemd user service
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Mon, 9 Nov 2026 01:51:50 +0000 (22:51 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Mon, 9 Nov 2026 01:51:50 +0000 (22:51 -0300)
commit2501e78d10204fac2298db0dee84b3dce379e09b
tree3a3b2018244cd2768b4ad9da5afa92bedf275901
parentd008b46cbfc6348255e9b9a1fc009f0e4bd6aa2a
Package a systemd user service

The flake package supplies a user unit that runs its own daemon binary
at login, restarts failures after five seconds, and sends output to the
journal. SIGTERM starts cleanup, with two minutes before a forced stop.
The unit keeps the rights of the user and a private file creation mask.

A unit in the existing package is the smallest flake interface for this
service. It needs no extra module interface or dependency and leaves the
data directory and tool environment in a standard user drop-in.

The README covers the data copy with the daemon stopped, the shared
client data setting, the package result link, and service controls. A
flake check verifies the built unit without a running user manager.

Issue: 99a5e07
README.rst
flake.nix
nix/onechat.service [new file with mode: 0644]
nix/package.nix
nix/user-service-check.nix [new file with mode: 0644]