From 6940d4d7963d8065ec17d7a92f72c4404342dab1 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Mon, 8 Apr 2024 09:12:50 -0400 Subject: [PATCH] Switch over to Podman --- modules/hosts/nixos/nixnuc/default.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/modules/hosts/nixos/nixnuc/default.nix b/modules/hosts/nixos/nixnuc/default.nix index b7b338d..8e22777 100644 --- a/modules/hosts/nixos/nixnuc/default.nix +++ b/modules/hosts/nixos/nixnuc/default.nix @@ -28,6 +28,8 @@ jellyfin-web net-snmp nginx + podman-compose + podman-tui # status of containers in the terminal yt-dlp ]; @@ -171,11 +173,19 @@ users.users.${username} = { isNormalUser = true; description = "Gene Liverman"; - extraGroups = [ "docker" "networkmanager" "wheel" ]; - packages = with pkgs; [ - docker-compose - ]; + extraGroups = [ "podman" "networkmanager" "wheel" ]; }; - virtualisation.docker.enable = true; + # Enable common container config files in /etc/containers + virtualisation.containers.enable = true; + + virtualisation.oci-containers.backend = "podman"; + + virtualisation.podman = { + enable = true; + dockerCompat = true; + + # Required for containers under podman-compose to be able to talk to each other. + defaultNetwork.settings.dns_enabled = true; + }; }