From e63d15f1732b2a27c362d376337ecb231f638649 Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Mon, 13 Feb 2017 04:06:22 +0000 Subject: [PATCH] ecs-agent NixOS module: enable docker --- nixos/modules/virtualisation/ecs-agent.nix | 4 ++++ 1 file changed, 4 insertions(+) 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" ];