{ config, pkgs, lib, username, ... }: { # Enable Docker virtualisation.docker = { enable = true; storageDriver = "btrfs"; }; # Enable Podman # virtualisation.podman.enable = true; #virtualisation.podman.dockerCompat = true; # Create a `docker` alias for podman, to use it as a drop-in replacement users.users.${username}.extraGroups = lib.mkIf config.virtualisation.docker.enable [ "docker" ]; }