21 lines
320 B
Nix
21 lines
320 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
{
|
|
|
|
options.components.virtualisation.docker.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = config.components.virtualisation.enable;
|
|
};
|
|
|
|
config = mkIf config.components.virtualisation.docker.enable {
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
};
|
|
|
|
}
|