nix-config/nixos/_mixins/virt/docker.nix
2024-05-23 15:02:20 -04:00

18 lines
407 B
Nix

{ desktop, lib, pkgs, ... }:
{
imports = lib.optional (builtins.isString desktop) ./desktop.nix;
#https://nixos.wiki/wiki/Docker
environment.systemPackages = with pkgs; [
docker-compose
];
virtualisation = {
docker.enable = true;
docker.storageDriver = lib.mkDefault "overlay2";
# docker.rootless = { TODO
# enable = true;
# setSocketVariable = true;
# };
};
}