nix/modules/virtualisation/podman.nix
2024-06-27 15:31:12 +02:00

29 lines
582 B
Nix

{ lib, config, pkgs, ... }:
let
cfg = config.podman;
in
{
options.podman = {
enable = lib.mkEnableOption "Enable Podman module";
};
config = lib.mkIf cfg.enable {
virtualisation.podman = {
enable = true;
# Depending on the host filesystem
# extraPackages = [ pkgs.zfs ];
};
# Depending on the host filesystem
# virtualisation.containers.storage.settings = {
# storage = {
# driver = "zfs";
# graphroot = "/var/lib/containers/storage";
# runroot = "/run/containers/storage";
# };
# };
};
}