diff --git a/alacritty/alacritty.yml b/desktop/alacritty/alacritty.yml similarity index 100% rename from alacritty/alacritty.yml rename to desktop/alacritty/alacritty.yml diff --git a/chromium/default b/desktop/chromium/default similarity index 100% rename from chromium/default rename to desktop/chromium/default diff --git a/chromium/profile-jit b/desktop/chromium/profile-jit similarity index 100% rename from chromium/profile-jit rename to desktop/chromium/profile-jit diff --git a/chromium/profile-jitless b/desktop/chromium/profile-jitless similarity index 100% rename from chromium/profile-jitless rename to desktop/chromium/profile-jitless diff --git a/git/.gitconfig b/desktop/git/.gitconfig similarity index 100% rename from git/.gitconfig rename to desktop/git/.gitconfig diff --git a/git/.gitconfig-inf b/desktop/git/.gitconfig-inf similarity index 100% rename from git/.gitconfig-inf rename to desktop/git/.gitconfig-inf diff --git a/linux/.config b/desktop/linux/.config similarity index 100% rename from linux/.config rename to desktop/linux/.config diff --git a/mc/ini b/desktop/mc/ini similarity index 100% rename from mc/ini rename to desktop/mc/ini diff --git a/mc/mc.keymap b/desktop/mc/mc.keymap similarity index 100% rename from mc/mc.keymap rename to desktop/mc/mc.keymap diff --git a/mc/panels.ini b/desktop/mc/panels.ini similarity index 100% rename from mc/panels.ini rename to desktop/mc/panels.ini diff --git a/mpv/input.conf b/desktop/mpv/input.conf similarity index 100% rename from mpv/input.conf rename to desktop/mpv/input.conf diff --git a/mpv/mpv.conf b/desktop/mpv/mpv.conf similarity index 100% rename from mpv/mpv.conf rename to desktop/mpv/mpv.conf diff --git a/mpv/scripts/equalizer.lua b/desktop/mpv/scripts/equalizer.lua similarity index 100% rename from mpv/scripts/equalizer.lua rename to desktop/mpv/scripts/equalizer.lua diff --git a/neofetch/config.conf b/desktop/neofetch/config.conf similarity index 100% rename from neofetch/config.conf rename to desktop/neofetch/config.conf diff --git a/nvim/init.vim b/desktop/nvim/init.vim similarity index 100% rename from nvim/init.vim rename to desktop/nvim/init.vim diff --git a/nvim/syntax/bbcode.vim b/desktop/nvim/syntax/bbcode.vim similarity index 100% rename from nvim/syntax/bbcode.vim rename to desktop/nvim/syntax/bbcode.vim diff --git a/portage/bashrc b/desktop/portage/bashrc similarity index 100% rename from portage/bashrc rename to desktop/portage/bashrc diff --git a/portage/env/basic.conf b/desktop/portage/env/basic.conf similarity index 100% rename from portage/env/basic.conf rename to desktop/portage/env/basic.conf diff --git a/desktop/portage/env/nolto.conf b/desktop/portage/env/nolto.conf new file mode 100644 index 0000000..e77a051 --- /dev/null +++ b/desktop/portage/env/nolto.conf @@ -0,0 +1,19 @@ +# Inferencium +# Portage - env - Clang - No LTO + +# Copyright 2023 Inference +# SPDX-License-Identifier: GPL-3.0-or-later + +# Version: 1.0.1.2 + + +# Flags +## Hardening flags +C_SEC="-fstack-clash-protection -fstack-protector-strong -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -fwrapv" +LD_SEC="-Wl,-z,defs -Wl,-z,now -Wl,-z,relro" +## Compiler flags +CFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}" +CXXFLAGS="-march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}" +RUSTFLAGS="-C debuginfo=0 -C target-cpu=znver3" +## Linker flags +LDFLAGS="-Wl,-O2 -Wl,--strip-all ${LD_SEC}" diff --git a/portage/env/notmpfs.conf b/desktop/portage/env/notmpfs.conf similarity index 100% rename from portage/env/notmpfs.conf rename to desktop/portage/env/notmpfs.conf diff --git a/portage/make.conf b/desktop/portage/make.conf similarity index 71% rename from portage/make.conf rename to desktop/portage/make.conf index 90994f6..43603dc 100644 --- a/portage/make.conf +++ b/desktop/portage/make.conf @@ -4,7 +4,7 @@ # Copyright 2022-2023 Inference # SPDX-License-Identifier: GPL-3.0-or-later -# Version: 10.0.0.34 +# Version: 13.0.1.38 # System @@ -35,14 +35,17 @@ PORTAGE_CHECKSUM_FILTER="-* sha256 sha512" PORTAGE_RSYNC_EXTRA_OPTS="--progress --verbose" # Flags +## Hardening flags +C_SEC="-fstack-clash-protection -fstack-protector-strong -ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang -fwrapv" +LD_SEC="-Wl,-z,defs -Wl,-z,now -Wl,-z,relro" ## Compiler flags -CFLAGS="-flto=4 -march=znver3 -mtune=znver3 -O2 -pipe" -CXXFLAGS="-flto=4 -march=znver3 -mtune=znver3 -O2 -pipe" +CFLAGS="-flto=thin -march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}" +CXXFLAGS="-flto=thin -march=znver3 -mtune=znver3 -O2 -pipe ${C_SEC}" RUSTFLAGS="-C debuginfo=0 -C embed-bitcode=y -C lto -C opt-level=2 -C target-cpu=znver3" ## Linker flags -LDFLAGS="-Wl,-O2 -Wl,--strip-all" +LDFLAGS="-Wl,-O2 -Wl,--strip-all -Wl,--thinlto-jobs=4 ${LD_SEC}" ## USE flags -USE="dbus lto nftables pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libvpx system-png system-webp verify-sig wayland" +USE="clang dbus llvm-libunwind lto nftables pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libvpx system-llvm system-png system-webp verify-sig wayland" USE="${USE} -ipv6 -systemd -X" ## CPU flags CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" diff --git a/desktop/portage/package.accept_keywords b/desktop/portage/package.accept_keywords new file mode 100644 index 0000000..2ea9b39 --- /dev/null +++ b/desktop/portage/package.accept_keywords @@ -0,0 +1,46 @@ +# Inferencium +# Portage - package.accept_keywords + +# Copyright 2022-2023 Inference +# SPDX-License-Identifier: GPL-3.0-or-later + +# Version: 7.0.0.23 + + +app-arch/unrar ~amd64 +dev-lang/rust ~amd64 +dev-libs/date ~amd64 +dev-libs/icu ~amd64 +dev-libs/libfmt ~amd64 +dev-libs/libstrophe ~amd64 +dev-libs/nss ~amd64 +dev-libs/spdlog ~amd64 +dev-libs/wayland-protocols ~amd64 +fs-util/fsverity-utils ~amd64 +gui-apps/waybar ~amd64 +=gui-wm/sway-1.7 ~amd64 +