Skip to content

Commit

Permalink
nixos/podman: add slirp4netns if configured
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Jun 10, 2024
1 parent d04e6c5 commit e2e28f8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nixos/modules/virtualisation/podman/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ let

inherit (lib) mkOption types;

podmanPackage = (pkgs.podman.override {
podmanPackage = pkgs.podman.override {
extraPackages = cfg.extraPackages
# setuid shadow
++ [ "/run/wrappers" ]
++ lib.optional (config.boot.supportedFilesystems.zfs or false) config.boot.zfs.package;
});
extraRuntimes = lib.optionals (config.virtualisation.containers.containersConf.settings.network.default_rootless_network_cmd or "" == "slirp4netns") (with pkgs; [
slirp4netns
]);
};

# Provides a fake "docker" binary mapping to podman
dockerCompat = pkgs.runCommand "${podmanPackage.pname}-docker-compat-${podmanPackage.version}"
Expand Down

0 comments on commit e2e28f8

Please sign in to comment.