dots/hosts/orion/modules/services/docker.nix

22 lines
382 B
Nix
Raw Normal View History

2024-06-17 20:26:17 -05:00
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
docker
docker-compose
];
virtualisation = {
oci-containers.backend = "docker";
containers.enable = true;
docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
autoPrune.enable = true;
package = pkgs.docker;
};
};
}