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

19 lines
407 B
Nix
Raw Normal View History

{ desktop, lib, pkgs, ... }:
{
imports = lib.optional (builtins.isString desktop) ./desktop.nix;
2023-10-16 18:46:06 +00:00
#https://nixos.wiki/wiki/Docker
environment.systemPackages = with pkgs; [
docker-compose
];
2023-10-16 18:46:06 +00:00
virtualisation = {
docker.enable = true;
docker.storageDriver = lib.mkDefault "overlay2";
# docker.rootless = { TODO
2023-10-18 13:29:40 +00:00
# enable = true;
# setSocketVariable = true;
# };
2023-10-16 18:46:06 +00:00
};
}