fix(matrix): correct container ordering unit name to container@<n>.service
The host systemd unit for a declarative nixos-container is container@<name>.service (confirmed from the live container@hive-matrix.service status), not nixos-container@. The prior commit's nixos-container@ ordering targeted a non-existent unit (a silent no-op). Use container@hive-{matrix,gateway}.service so the after-ordering actually takes effect.
This commit is contained in:
parent
a2fe3f2e01
commit
c5e23fd3a3
1 changed files with 5 additions and 4 deletions
|
|
@ -415,10 +415,11 @@ in
|
|||
# requirement. Soft `after` ordering (not `requires`) keeps the matrix
|
||||
# container's lifecycle decoupled from the gateway's. `network.enable`
|
||||
# asserts `gateway.enable`, so the gateway container unit always exists
|
||||
# here. (Declarative `containers.<n>` → `nixos-container@<n>.service`,
|
||||
# per the hive-ci precedent.)
|
||||
systemd.services."nixos-container@hive-matrix".after = lib.mkIf networkCfg.enable [
|
||||
"nixos-container@hive-gateway.service"
|
||||
# here. (Declarative `containers.<n>` → `container@<n>.service` — the
|
||||
# nspawn template NixOS generates, confirmed from the live
|
||||
# `container@hive-matrix.service` host unit.)
|
||||
systemd.services."container@hive-matrix".after = lib.mkIf networkCfg.enable [
|
||||
"container@hive-gateway.service"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue