nixos-config/2configs/virtualisation/podman.nix
2024-07-24 22:11:46 +02:00

25 lines
533 B
Nix

{ pkgs, config, ... }:
{
virtualisation.oci-containers.backend = "podman";
virtualisation.podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
# storageDriver = "devicemapper";
};
#networking.nat = {
# enable = true;
# internalInterfaces = [ "ve-+" ];
# externalInterface = "enp2s0";
#};
environment.systemPackages = with pkgs;[
podman
podman-tui
podman-compose
];
users.users.${config.krebs.build.user.name}.extraGroups = [ "podman" ];
}