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