20 lines
430 B
Nix
20 lines
430 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
with lib;
|
||
|
{
|
||
|
|
||
|
options.components.virtualisation.podman.enable = lib.mkOption {
|
||
|
type = lib.types.bool;
|
||
|
default = config.components.virtualisation.enable;
|
||
|
};
|
||
|
|
||
|
config = mkIf config.components.virtualisation.podman.enable {
|
||
|
|
||
|
virtualisation.podman.enable = true;
|
||
|
|
||
|
# make sure /var/lib/containers/storage is a zfs dataset
|
||
|
virtualisation.podman.extraPackages = [ pkgs.zfs ];
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|