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