nixBuilds none: turn the container's own nix-daemon socket and service off
This commit is contained in:
parent
5485151ba6
commit
f930571e38
1 changed files with 30 additions and 0 deletions
|
|
@ -134,6 +134,17 @@ let
|
|||
&& noBuilds.systemd.globalEnvironment.NIX_REMOTE == "daemon"
|
||||
&& !(builtins.tryEval unknownBuilds.services.hyperhive.agent.nixBuilds).success;
|
||||
}
|
||||
{
|
||||
# The container's own daemon would listen on the tmpfs that hides the
|
||||
# host socket. The `host` agent is the control: its units are on, so a
|
||||
# misspelled unit name cannot pass the `none` arms.
|
||||
name = "nixBuilds none turns the container's own nix-daemon socket and service off, host leaves them on";
|
||||
ok =
|
||||
iris.systemd.sockets.nix-daemon.enable
|
||||
&& iris.systemd.services.nix-daemon.enable
|
||||
&& !noBuilds.systemd.sockets.nix-daemon.enable
|
||||
&& !noBuilds.systemd.services.nix-daemon.enable;
|
||||
}
|
||||
];
|
||||
in
|
||||
runGroup "agent-user" cases
|
||||
|
|
|
|||
Loading…
Reference in a new issue