>>6728how USE flags work and how to write your main.conf
or just copypaste it
#Disable USE flags not wanted for ALL packages
*/* -non-free -proprietary-codecs -bluetooth -qt -pulseaudio -pipewire -coreaudio -ios -cups -ppp -elogind -dbus -dvd -cd -wayland -systemd -gnome -kde -ipv6
#Enable USE flags wanted for ALL packages
*/* X harfbuzz alsa emacs
#General USE flags
sys-boot/grub -grub_platforms_efi-64 -themes
net-wireless/iwd standalone monitor wired
dev-vcs/git -perl
media-libs/freetype -harfbuzz
x11-base/xorg-server suid xcsecurity xnest -xvfb
app-admin/doas persist
app-editors/emacs dynamic-loading gtk gui xft png svg ssl webp jpeg libxml2 -toolkit-scroll-bars
app-emacs/emacs-common gui
media-video/ffmpeg x264
sys-apps/openrc -ncurses -netifrc -unicode
media-sound/alsa-utils -libsamplerate
net-libs/nodejs -npm
sys-kernel/gentoo-sources symlink
sys-kernel/genkernel -firmware
media-libs/libvpx postproc
media-gfx/gimp webp
media-libs/gegl cairo
app-text/poppler cairo
net-vpn/tor -server -man tor-hardening
games-fps/cripsy-doom -midi
media-libs/sdl2-mixer midi fluidsynth
media-libs/libsdl2 opengl
#CPU flags
*/* CPU_FLAGS_X86: mmx mmxext sse sse2 sse3 sse4_1 ssse3