From f0132ce2e04fce66ec6cde7d9b63410336d9e9c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Thu, 28 Aug 2025 10:58:49 +0200 Subject: [PATCH] weasel: add podman --- m/weasel/configuration.nix | 1 + m/weasel/virtualization.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 m/weasel/virtualization.nix diff --git a/m/weasel/configuration.nix b/m/weasel/configuration.nix index 995d0fd..4943f7a 100644 --- a/m/weasel/configuration.nix +++ b/m/weasel/configuration.nix @@ -4,6 +4,7 @@ imports = [ ../common/ssf.nix ../module/hut-substituter.nix + ./virtualization.nix ]; # Select this using the ID to avoid mismatches diff --git a/m/weasel/virtualization.nix b/m/weasel/virtualization.nix new file mode 100644 index 0000000..d9c728d --- /dev/null +++ b/m/weasel/virtualization.nix @@ -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 + ]; +}