nixos-config/components/virtualisation/docker.nix

17 lines
312 B
Nix
Raw Normal View History

2024-08-11 14:46:03 +02:00
{ 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;
};
}