nixos/services/docker.nix

14 lines
419 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
# Note: add privileged users to docker group for access
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;
};
environment.systemPackages = with pkgs; [ docker-compose docker-machine cntr ];
}