{ config, lib, pkgs, ... }: let inherit (lib.modules) mkIf; inherit (lib.options) mkEnableOption; cfg = config.coreAll; in { options.coreAll = { enable = mkEnableOption "Base system utils"; }; config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ btop git wget ]; }; }