diff --git a/m/weasel/configuration.nix b/m/weasel/configuration.nix index 43ee7358..73ede079 100644 --- a/m/weasel/configuration.nix +++ b/m/weasel/configuration.nix @@ -3,6 +3,7 @@ { imports = [ ../common/ssf.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 00000000..d9c728d7 --- /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 + ]; +}