nix/modules/virtualisation/podman.nix
2024-08-27 09:46:44 +02:00

34 lines
590 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";
# };
# };
};
}