modular-services: rename system-services -> home-services

Signed-off-by: cinereal <cinereal@riseup.net>
This commit is contained in:
cinereal 2026-05-05 11:15:12 +02:00 committed by Robert Helgesson
parent cdea7d89f5
commit f77079ee8a
3 changed files with 3 additions and 3 deletions

View file

@ -49,7 +49,7 @@ after the service itself); [`process.argv`] becomes the default
## Configuration data {#sec-usage-modular-services-configdata}
Each service can declare configuration files via `configData.<name>`.
These are materialized at `$XDG_CONFIG_HOME/system-services/<service>/<name>`
These are materialized at `$XDG_CONFIG_HOME/home-services/<service>/<name>`
(mirroring how NixOS lifts `configData` to `environment.etc`), with the
absolute path injected back into `configData.<name>.path` so the service
can refer to its files at a stable location:

View file

@ -23,7 +23,7 @@ let
types.submodule (
{ config, ... }:
{
config.path = lib.mkDefault "${xdgConfigHome}/system-services/${servicePrefix}/${config.name}";
config.path = lib.mkDefault "${xdgConfigHome}/home-services/${servicePrefix}/${config.name}";
}
)
);

View file

@ -119,7 +119,7 @@ let
makeConfigFiles =
prefix: service:
lib.mapAttrs' (_: cfg: {
name = "system-services/${prefix}/${cfg.name}";
name = "home-services/${prefix}/${cfg.name}";
value = lib.filterAttrs (_: v: v != null) {
source = cfg.source or null;
text = cfg.text or null;