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 + ]; +}