nix-config/nixos/_mixins/virt/docker.nix

15 lines
261 B
Nix
Raw Normal View History

2023-10-16 18:46:06 +00:00
{ pkgs, lib, config, ... }: {
# https://nixos.wiki/wiki/Docker
environment.systemPackages = with pkgs; [ docker-compose ];
virtualisation.docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
};
}