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

27 lines
510 B
Nix
Raw Normal View History

2024-07-06 16:01:17 +01:00
{ pkgs, inputs, ... }:
{
2024-07-05 18:58:03 +01:00
imports = [ inputs.arion.nixosModules.arion ];
2024-07-06 16:01:17 +01:00
environment.systemPackages = [
pkgs.arion
];
2024-07-06 16:01:17 +01:00
# Arion works with Docker, but for NixOS-based containers, you need Podman
# since NixOS 21.05.
2024-07-05 18:58:03 +01:00
virtualisation = {
podman = {
enable = true;
defaultNetwork.settings.dns_enabled = true;
};
docker = {
2024-07-06 16:01:17 +01:00
enable = true;
2024-07-05 18:58:03 +01:00
storageDriver = "btrfs";
rootless = {
enable = true;
setSocketVariable = true;
};
};
};
}