nix-config/modules/podman.nix

37 lines
735 B
Nix
Raw Normal View History

2025-09-03 10:03:29 +02:00
{ pkgs, ... }:
2025-04-03 12:50:08 +02:00
{
2025-09-03 10:03:29 +02:00
environment.systemPackages = with pkgs; [
2025-04-03 12:50:08 +02:00
# Virtualisation
2025-09-03 10:03:29 +02:00
podman-compose # docker-compose alternative
dive # docker layer viewer
podman-tui # status of containers in terminal
podman-desktop # Desktop client
tailscale # Vpn
];
# Virtualisation
virtualisation = {
containers.enable = true;
2025-04-03 12:50:08 +02:00
2025-09-03 10:03:29 +02:00
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
2025-04-03 12:50:08 +02:00
2025-09-03 10:03:29 +02:00
oci-containers = {
backend = "podman";
containers = {
/*
container-name = {
image = "image";
autoStart = true;
ports = [ "127.0.0.1:1234:1234" ];
};
*/
};
2025-04-03 12:50:08 +02:00
};
2025-09-03 10:03:29 +02:00
};
2025-04-03 12:50:08 +02:00
}