From 1d9d1697a971be53d6fc92ab3a4412ab1b15b46c Mon Sep 17 00:00:00 2001 From: reo101 Date: Sun, 1 Sep 2024 04:33:50 +0300 Subject: [PATCH] feat(jeeves): enable `podman` --- hosts/nixos/jeeves/configuration.nix | 1 + hosts/nixos/jeeves/podman.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 hosts/nixos/jeeves/podman.nix diff --git a/hosts/nixos/jeeves/configuration.nix b/hosts/nixos/jeeves/configuration.nix index 2bb4c97..8bcbe5d 100644 --- a/hosts/nixos/jeeves/configuration.nix +++ b/hosts/nixos/jeeves/configuration.nix @@ -19,6 +19,7 @@ # ./immich.nix # ./nextcloud.nix ./paperless.nix + ./podman.nix ]; # services.kanidm = { }; diff --git a/hosts/nixos/jeeves/podman.nix b/hosts/nixos/jeeves/podman.nix new file mode 100644 index 0000000..5fd284a --- /dev/null +++ b/hosts/nixos/jeeves/podman.nix @@ -0,0 +1,14 @@ +{ inputs, lib, pkgs, config, ... }: +{ + # Enable common container config files in /etc/containers + virtualisation.containers.enable = true; + 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; + }; +}