nixos/hosts/common/optional/docker/default.nix

21 lines
429 B
Nix

{ inputs, ... }: {
imports = [ inputs.arion.nixosModules.arion ];
# Arion works with Docker, but for NixOS-based containers, you need Podman
# since NixOS 21.05.
virtualisation = {
podman = {
enable = true;
defaultNetwork.settings.dns_enabled = true;
};
docker = {
storageDriver = "btrfs";
rootless = {
enable = true;
setSocketVariable = true;
};
};
};
}