nixos/services/docker.nix

15 lines
419 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
# Note: add privileged users to docker group for access
with lib;
mkIf (elem "docker" 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 ];
### Docker Image stuff will probably follow here
}