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

20 lines
425 B
Nix
Raw Permalink 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
2024-08-15 05:29:41 +00:00
docker-buildx
];
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
};
}