modular-services: rename system-services -> home-services
Signed-off-by: cinereal <cinereal@riseup.net>
This commit is contained in:
parent
cdea7d89f5
commit
f77079ee8a
3 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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}";
|
||||
}
|
||||
)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue