Docker : Fix autostart module.

This commit is contained in:
Dmitry Voronin 2024-09-03 14:44:00 +03:00
parent dd9756183e
commit 0826932c53
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -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 [];
};
}