2023-09-11 20:23:04 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2019-03-17 11:43:14 +01:00
|
|
|
# Note: add privileged users to docker group for access
|
2019-03-20 02:57:59 +01:00
|
|
|
with lib;
|
2023-09-11 20:23:04 +02:00
|
|
|
mkIf ((elem "docker" config.machine.services) && !(elem "podman" config.machine.services)) {
|
|
|
|
virtualisation.docker = {
|
|
|
|
enable = true;
|
|
|
|
# Disable live restore as it tends to delay/block system shutdown
|
|
|
|
liveRestore = false;
|
|
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [docker-compose docker-machine cntr];
|
|
|
|
}
|