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

21 lines
429 B
Nix
Raw Normal View History

2024-07-05 18:58:03 +01:00
{ 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;
};
};
};
}