15 lines
420 B
Nix
15 lines
420 B
Nix
{ 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" ];
|
|
}
|