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