{ lib, config, ... }: let inherit (lib) mkIf mkOption types; in { options.smayzy.docker.enable = mkOption { type = types.bool; default = false; description = "enable docker"; }; config = mkIf config.smayzy.docker.enable { virtualisation.docker.enable = true; users.extraGroups.docker.members = [ "smayzy" ]; }; }