From cbc6343735ba322270097a1adc9ab077e1b65879 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 12 Mar 2024 22:37:30 -0400 Subject: [PATCH] moved virtualization into homelab subfolder --- modules/homelab/default.nix | 2 +- modules/homelab/virtualization/default.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 modules/homelab/virtualization/default.nix 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