Docker : Fix autostart module.
This commit is contained in:
parent
dd9756183e
commit
0826932c53
|
@ -19,12 +19,12 @@ in {
|
||||||
{
|
{
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
systemd = {
|
systemd = if cfg.autostart then {} else {
|
||||||
services = {
|
services = {
|
||||||
docker-prune.enable = mkForce cfg.autostart;
|
docker-prune.wantedBy = mkForce [];
|
||||||
docker.enable = mkForce cfg.autostart;
|
docker.wantedBy = mkForce [];
|
||||||
};
|
};
|
||||||
sockets.docker.enable = mkForce cfg.autostart;
|
sockets.docker.wantedBy = mkForce [];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue