config/profiles/oci/docker.nix

25 lines
670 B
Nix
Raw Normal View History

2023-07-05 13:34:19 +02:00
{ lib, pkgs, ... }:
{
virtualisation.docker.enable = true;
2024-03-24 03:11:53 +01:00
virtualisation.oci-containers.backend = lib.mkDefault "docker";
2023-07-05 13:34:19 +02:00
virtualisation.docker.autoPrune.enable = true;
virtualisation.docker.autoPrune.dates = "weekly";
#virtualisation.docker.autoPrune.flags = [ "--all" ];
environment.systemPackages = with pkgs; [
#docker-compose
];
# Required for containers under podman-compose to be able to talk to each other.
#virtualisation.defaultNetwork.settings.dns_enabled = true;
# TODO: if root-on-zfs
#virtualisation.podman.extraPackages = [ pkgs.zfs ];
2024-03-24 03:11:53 +01:00
# remember to add your user:
#users.users.USERNAME.extraGroups = [ "docker" ];
2023-07-05 13:34:19 +02:00
}