marleyos/modules/nixos/services/docker/default.nix

13 lines
233 B
Nix

{
lib,
config,
...
}: let
cfg = config.marleyos.services.docker;
in {
options.marleyos.services.docker.enable = lib.mkEnableOption "docker";
config = lib.mkIf cfg.enable {
virtualisation.docker.enable = true;
};
}