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

27 lines
435 B
Nix
Raw Normal View History

{
pkgs,
inputs,
...
}: {
imports = [inputs.arion.nixosModules.arion];
environment.systemPackages = [
pkgs.arion
pkgs.docker-client
];
2024-07-05 18:58:03 +01:00
virtualisation = {
podman = {
2024-07-06 16:01:17 +01:00
enable = true;
dockerSocket.enable = true;
defaultNetwork.settings.dns_enabled = true;
2024-07-05 18:58:03 +01:00
};
};
environment.persistence."/persist" = {
hideMounts = true;
directories = [
"/var/lib/containers"
];
};
2024-07-05 18:58:03 +01:00
}