diff options
Diffstat (limited to 'nixos/modules/virtualisation/ecs-agent.nix')
-rw-r--r-- | nixos/modules/virtualisation/ecs-agent.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/ecs-agent.nix b/nixos/modules/virtualisation/ecs-agent.nix index ed17fbf4931..18e45e0b845 100644 --- a/nixos/modules/virtualisation/ecs-agent.nix +++ b/nixos/modules/virtualisation/ecs-agent.nix @@ -22,6 +22,10 @@ in { }; config = lib.mkIf cfg.enable { + # This service doesn't run if docker isn't running, and unlike potentially remote services like e.g., postgresql, docker has + # to be running locally so `docker.enable` will always be set if the ECS agent is enabled. + virtualisation.docker.enable = true; + systemd.services.ecs-agent = { inherit (cfg.package.meta) description; after = [ "network.target" ]; |