From c9e546b83b3eec6d1973393d1281ccabce7d99f4 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Thu, 29 Feb 2024 18:29:15 -0500 Subject: [PATCH] added podman --- flake.nix | 1 + programs/podman/default.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 programs/podman/default.nix diff --git a/flake.nix b/flake.nix index cef2a179..d1f9396c 100644 --- a/flake.nix +++ b/flake.nix @@ -29,6 +29,7 @@ ./hardware ./network ./desktop/gnome + ./programs/podman nix-flatpak.nixosModules.nix-flatpak # make home-manager as a module of nixos diff --git a/programs/podman/default.nix b/programs/podman/default.nix new file mode 100644 index 00000000..4d3f8e82 --- /dev/null +++ b/programs/podman/default.nix @@ -0,0 +1,14 @@ +{ pkgs, ... }: +{ + virtualisation = { + 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; + }; + }; +} \ No newline at end of file