diff --git a/machines/pericyte/configuration.nix b/machines/pericyte/configuration.nix index 037992d..7ad8a69 100644 --- a/machines/pericyte/configuration.nix +++ b/machines/pericyte/configuration.nix @@ -4,6 +4,7 @@ "${inputs.nixpkgs}/nixos/modules/profiles/headless.nix" "${inputs.nixpkgs}/nixos/modules/profiles/minimal.nix" + ./podman.nix # ./microvm-configuration.nix # ./k3s.nix ]; diff --git a/machines/pericyte/podman.nix b/machines/pericyte/podman.nix new file mode 100644 index 0000000..7be3b4e --- /dev/null +++ b/machines/pericyte/podman.nix @@ -0,0 +1,19 @@ +{ 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 + ]; +}