--- /dev/null
+# These settings were set by the catalyst build script that automatically
+# built this stage.
+# Please consult /usr/share/portage/config/make.conf.example for a more
+# detailed example.
+CFLAGS="-O2 -pipe -march=haswell -fomit-frame-pointer"
+CXXFLAGS="${CFLAGS}"
+MAKEOPTS="-j{{ grains['num_cpus'] + 1 }}"
+
+# NOTE: This stage was built with the bindist Use flag enabled
+PORTDIR="/usr/portage"
+DISTDIR="/usr/portage/distfiles"
+PKGDIR="/usr/portage/packages"
+
+# This sets the language of build output to English.
+# Please keep this setting intact when reporting bugs.
+LC_MESSAGES=C
+
+GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/"
+
+USE="X alsa -pulseaudio pcsc-lite -bindist -cups -ldap libressl wayland unicode ipv6 ipv4"
+GRUB_PLATFORMS="efi-64"
+
+VIDEO_CARDS="{{ video_cards }}"
+INPUT_DEVICES="libinput"
+
+{% if testing == True %}
+ACCEPT_KEYWORDS="~amd64"
+{% endif %}
+
+RUBY_TARGETS="ruby25"
+
+PORTAGE_NICENESS="19"
+
+FEATURES="buildpkg sign"
+PORTAGE_GPG_KEY="BA1CE947376048A4B3C4D4E50B3B880CF5E7FCB3"
+
+EMERGE_DEFAULT_OPTS="-av --quiet-build=y"
+PORTAGE_IONICE_COMMAND="ionice -c 3 -p \${PID}"
+
+CURL_SSL="libressl"
--- /dev/null
+/etc/portage/make.conf:
+ file.managed:
+ - source: salt://portage/files/make.conf
+ - template: jinja
+ - user: root
+ - group: root
+ - mode: 644
+ - context:
+{% if grains['host'] == 'strontium' %}
+ testing: False
+{% else %}
+ testing: True
+{% endif %}
+{% if grains['host'] == 'plutonium' %}
+ video_cards: nouveau
+{% else %}
+ video_cards: intel
+{% endif %}