2024-05-10 23:41:38 +02:00
|
|
|
# SPDX-FileCopyrightText: 2020-2024 Simon Bruder <simon@sbruder.de>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
options.sbruder.podman.enable = lib.mkEnableOption "podman";
|
|
|
|
|
|
|
|
config = lib.mkIf config.sbruder.podman.enable {
|
|
|
|
boot.enableContainers = false; # FIXME: this only needs to be set for some stateVersions
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
buildah
|
2024-06-20 11:31:44 +02:00
|
|
|
passt # required by buildah by default
|
2024-05-10 23:41:38 +02:00
|
|
|
podman-compose
|
|
|
|
skopeo
|
|
|
|
];
|
|
|
|
|
|
|
|
virtualisation = {
|
|
|
|
podman = {
|
|
|
|
enable = true;
|
|
|
|
dockerSocket.enable = true;
|
|
|
|
defaultNetwork.settings = {
|
|
|
|
ipv6_enabled = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|