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