From 41b0efb12d412f2bac0e68f5706a85ab629e88d6 Mon Sep 17 00:00:00 2001 From: derped Date: Fri, 16 Jun 2023 23:30:06 +0200 Subject: [PATCH] Add cntr package if container service is enabled. --- services/docker.nix | 2 +- services/podman.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/docker.nix b/services/docker.nix index 82feba2..ae7d385 100644 --- a/services/docker.nix +++ b/services/docker.nix @@ -9,5 +9,5 @@ mkIf ((elem "docker" config.machine.services) && !(elem "podman" config.machine. # Disable live restore as it tends to delay/block system shutdown liveRestore = false; }; - environment.systemPackages = with pkgs; [ docker-compose docker-machine ]; + environment.systemPackages = with pkgs; [ docker-compose docker-machine cntr ]; } diff --git a/services/podman.nix b/services/podman.nix index 5685fd3..984e055 100644 --- a/services/podman.nix +++ b/services/podman.nix @@ -13,6 +13,6 @@ in mkIf (elem "podman" config.machine.services) { settings.dns_enabled = true; }; }; - environment.systemPackages = (with pkgs; [ podman-compose ]) ++ + environment.systemPackages = (with pkgs; [ podman-compose cntr ]) ++ (optional withDocker pkgs.docker-compose); }