{ config, lib, ... }: let cfg = config.vhack.dhcpcd; in { options.vhack.dhcpcd = { enable = (lib.mkEnableOption "dhcpcd") // {default = config.networking.dhcpcd.enable;}; }; config = lib.mkIf cfg.enable { users = { users.dhcpcd.uid = config.vhack.constants.ids.uids.dhcpcd; groups.dhcpcd.gid = config.vhack.constants.ids.gids.dhcpcd; }; }; }