buz support

This commit is contained in:
ari committed 2026-09-20 20:13:39 -04:00
1 parent 5d727c26cd
commit beb83f21b3
13 files changed
+397 -42

No files matched your search

@@ -4,14 +4,14 @@ Custom compose-style container service groups for systemd.
## Files
| File | Purpose |
|------|---------|
| `default.nix` | Main module entry point; imports options and wires everything |
| `options.nix` | All `skyg.nixos.common.container-services.*` option declarations |
| `lib.nix` | Shared helpers (runtime dispatch, path sanitization, env file collection) |
| File | Purpose |
| ------------- | ----------------------------------------------------------------------------------- |
| `default.nix` | Main module entry point; imports options and wires everything |
| `options.nix` | All `skyg.nixos.common.container-services.*` option declarations |
| `lib.nix` | Shared helpers (runtime dispatch, path sanitization, env file collection) |
| `compose.nix` | YAML composition (mkComposeService, mkComposeAttrs, mkComposeFile, mkOverridesFile) |
| `files.nix` | File mounting logic (getAllFiles, mkFileVolumesForService, mkFilesService) |
| `systemd.nix` | Systemd unit builders (mkSystemdService, mkPathUnit, mkEnvReloadService) |
| `files.nix` | File mounting logic (getAllFiles, mkFileVolumesForService, mkFilesService) |
| `systemd.nix` | Systemd unit builders (mkSystemdService, mkPathUnit, mkEnvReloadService) |
## How it works
@@ -42,6 +42,8 @@ If adding a new per-service option:
## Architecture
- Each group gets **one** systemd unit (`container-services-<group>.service`) that manages the whole stack
- Group units are ordered after `container-networks.target`, so any network declared in
`skyg.nixos.common.containers.networks` exists before a stack starts
- Custom files are collected and written by a separate unit (`container-services-<group>-files.service`)
- Env file changes trigger a path unit that restarts the stack (`container-services-<group>-env-reload.*`)
- Compose files are rendered to the store and staged to `/var/lib/container-services/<group>/compose.yml`
@@ -14,9 +14,10 @@
{
description = "Container service group '${groupName}'";
wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" "remote-fs.target" ];
wants = [ "network-online.target" "remote-fs.target" "container-networks.target" ];
after = [
runtimeService
"container-networks.target"
"network-online.target"
"agenix.service"
"remote-fs.target"