diff --git a/modules/homelab/default.nix b/modules/homelab/default.nix index 0bcc3c95..7a08623b 100644 --- a/modules/homelab/default.nix +++ b/modules/homelab/default.nix @@ -2,7 +2,7 @@ { imports = [ - ../virtualization + ./virtualization ./reverse_proxy ]; diff --git a/modules/homelab/virtualization/default.nix b/modules/homelab/virtualization/default.nix new file mode 100644 index 00000000..e94c6125 --- /dev/null +++ b/modules/homelab/virtualization/default.nix @@ -0,0 +1,21 @@ +{ pkgs, ... }: + +{ + programs.virt-manager.enable = true; + + virtualisation = { + libvirtd.enable = true; + podman = { + enable = true; + + # Create a `docker` alias for podman, to use it as a drop-in replacement + dockerCompat = true; + + # Required for containers under podman-compose to be able to talk to each other. + defaultNetwork.settings.dns_enabled = true; + }; + oci-containers = { + backend = "podman"; + }; + }; +} \ No newline at end of file