weasel: add podman

This commit is contained in:
Aleix Boné 2025-08-28 10:58:49 +02:00
parent 510d9046ce
commit f0132ce2e0
No known key found for this signature in database
2 changed files with 22 additions and 0 deletions

View File

@ -4,6 +4,7 @@
imports = [
../common/ssf.nix
../module/hut-substituter.nix
./virtualization.nix
];
# Select this using the ID to avoid mismatches

View File

@ -0,0 +1,21 @@
{ pkgs, ... }:
{
# Enable common container config files in /etc/containers
virtualisation.containers.enable = true;
virtualisation = {
podman = {
enable = true;
# Required for containers under podman-compose to be able to talk to each other.
defaultNetwork.settings.dns_enabled = true;
};
};
# Useful other development tools
environment.systemPackages = with pkgs; [
dive # look into docker image layers
podman-tui # status of containers in the terminal
podman-compose # start group of containers for dev
];
}