Move custom kernel to the Nyx ebuild at CachyOS 7.3.1-1
All checks were successful
Check and mirror to GitHub / checks (push) Successful in 22s
Check and mirror to GitHub / github-mirror (push) Successful in 10s

The snapshot pinned gentoo-kernel-7.2.10, which ::gentoo has dropped, so the
custom kernel no longer resolved.

- Bundle sys-kernel/fiw-nyx-kernel and its virtual/dist-kernel in the overlay.
- Replace the CachyOS patch, guard and fiw-cachy-patch with fiw-nyx-bump.
- Mask the virtual and gentoo-kernel-bin above the Nyx release, because modules
  build for the newest installed kernel.
- Build Fastfetch with image logos: since 2.69.0 the ebuild disables them
  without USE=imagemagick, kitty-direct included.
This commit is contained in:
Fi3w0 2026-11-05 02:30:43 +01:00
parent db2f49005e
commit c6addd29ef
22 changed files with 232 additions and 43337 deletions

View file

@ -85,5 +85,5 @@ binary fallback booted, and addition/removal hooks and preservation of edited
menus were checked. Physical firmware and unsupported storage layouts still
need their own setup.
`optional/fiw-cachy-patch` refreshes the custom kernel patch; it does not select
`optional/fiw-nyx-bump` adds new custom kernel releases; it does not select
a bootloader. See the [helper list](scripts.md) before using it.

View file

@ -10,12 +10,14 @@
| `tools/ci/check.py` | Checks privacy, asset fingerprints, Python syntax and frontend compilation. |
| `tools/ci/mirror.py` | Synchronizes branches/tags to GitHub after checks. See [CI](ci.md). |
| `fiw-shot` | Screenshot region/monitor, copy to clipboard, then offer Save/Edit. Installed with KDE shortcuts. |
| `optional/fiw-cachy-patch` | Manually generates/installs a matching CachyOS kernel patch and updates the installed guard/name. |
| `optional/fiw-nyx-bump` | Adds the newest CachyOS release as a `fiw-nyx-kernel` ebuild, with its `virtual/dist-kernel` and Manifests. |
| `optional/spotify/spotify-patch` | Runs the optional Spotify customization workflow. |
| `optional/spotify/spicetify-snapshotfix` | Supplies missing Marketplace fragments for that customization. |
The custom-kernel helper does not update the repo's `snapshot.json`, patch
checksum or version mask. Review those together when refreshing the snapshot.
To refresh the bundled kernel, run the helper against this checkout with
`FIW_NYX_REPO` pointing at `overlay` and `FIW_NYX_MASK` at a temporary file, for
example `fiw-nyx-bump 7.3`. It does not update `snapshot.json`, so review that
together with the new ebuild and keep only the snapshot's release in the overlay.
Confirmed boot deployment installs its own refresh helper and kernel hooks.
The default `keep` choice leaves them disabled. See [boot setup](boot.md).

View file

@ -73,9 +73,10 @@ Custom kernel installs with NVIDIA also check its modules against the selected
custom kernel and binary fallback. Missing or outdated modules are compiled
for each, and failures appear in the package report.
The custom kernel uses the CachyOS 7.2.10-1 patch and is named `7.2.10-fiw-nyx-v1.2`. Newer
7.2.x point releases reuse that patch and config; the next series stays masked
until the snapshot is updated. Fiw's Ryzen preset also installs
The custom kernel is `sys-kernel/fiw-nyx-kernel` from the bundled overlay: CachyOS's
released 7.3.1-1 source built the Gentoo dist-kernel way, named `7.3.1-fiw-nyx-v1.2`.
`virtual/dist-kernel` and `gentoo-kernel-bin` stay masked above that release, because
modules build for the newest installed kernel. Fiw's Ryzen preset also installs
`/etc/sysctl.d/70-fiw-dots-performance.conf` (CachyOS-style memory/network
values, `vm.max_map_count` for Proton games, TCP BBR with fq) and loads
`tcp_bbr`. No extra packages are needed for either.

View file

@ -89,7 +89,7 @@ def package_map(selection):
def source_policy(selection):
result = atoms(REPO / 'packages/source.list')
if selection['kernel'] == 'custom' and 'system' in selection['groups']:
result += ['sys-kernel/gentoo-kernel']
result += ['sys-kernel/fiw-nyx-kernel']
if 'nvidia' in selection.get('extras', []):
result += ['x11-drivers/nvidia-drivers']
return result
@ -351,11 +351,13 @@ def root_files(selection, repo_location=None):
if selection['kernel'] == 'custom' and 'system' in selection['groups']:
for src in (REPO / 'optional/kernel/config.d').glob('*.config'):
result['etc/kernel/config.d/' + src.name] = src.read_text()
result['etc/portage/package.accept_keywords/fiw-dots-kernel'] = 'sys-kernel/gentoo-kernel ~amd64\nsys-kernel/gentoo-kernel-bin ~amd64\nvirtual/dist-kernel ~amd64\n'
result['etc/portage/env/sys-kernel/gentoo-kernel'] = (REPO / 'optional/kernel/guard').read_text()
# Point releases of the tested series reuse the patch (see guard); a new series needs a new snapshot.
major, minor = json.loads((REPO / 'optional/kernel/snapshot.json').read_text())['patch_kernel'].split('.')[:2]
result['etc/portage/package.mask/fiw-dots-custom-kernel'] = '# Tested custom-kernel series; update snapshot and patch for the next one.\n>=sys-kernel/gentoo-kernel-' + major + '.' + str(int(minor) + 1) + '\n'
result['etc/portage/package.accept_keywords/fiw-dots-kernel'] = 'sys-kernel/fiw-nyx-kernel ~amd64\nsys-kernel/gentoo-kernel-bin ~amd64\nvirtual/dist-kernel ~amd64\n'
result['etc/portage/env/sys-kernel/fiw-nyx-kernel'] = (REPO / 'optional/kernel/env').read_text()
# dist-kernel modules build for the newest installed kernel, so nothing may pass Nyx.
snapshot = json.loads((REPO / 'optional/kernel/snapshot.json').read_text())
release = snapshot['atom'].split('fiw-nyx-kernel-', 1)[1]
result['etc/portage/package.mask/fiw-dots-custom-kernel'] = ('# Nyx release in this snapshot; dist-kernel modules build for the newest installed kernel.\n'
'>virtual/dist-kernel-' + release + '\n>sys-kernel/gentoo-kernel-bin-' + snapshot['kernel'] + '\n')
if selection['profile'] == 'fiw-ryzen':
result['etc/sysctl.d/70-fiw-dots-performance.conf'] = (REPO / 'optional/tuning/70-fiw-performance.conf').read_text()
result['etc/modules-load.d/fiw-dots-bbr.conf'] = (REPO / 'optional/tuning/bbr.conf').read_text()
@ -415,11 +417,6 @@ def export(selection, dest):
target = dest / relative
target.parent.mkdir(parents=True, exist_ok=True)
target.write_text(content)
if selection['kernel'] == 'custom' and 'system' in selection['groups']:
patches = dest / 'etc/portage/patches/sys-kernel/gentoo-kernel'
patches.mkdir(parents=True, exist_ok=True)
for src in (REPO / 'optional/kernel/patches').glob('*.patch'):
shutil.copy2(src, patches / src.name)
(dest / 'selection.json').write_text(json.dumps(selection, indent=2) + '\n')
(dest / 'PLAN.txt').write_text(preview(selection) + '\n')
print('Exported root configuration and plan to ' + str(dest))
@ -569,7 +566,7 @@ def install_packages(selection):
return {'status': 'skipped', 'requested': requested, 'skipped': skipped, 'missing': requested}
build_modules = (selection['kernel'] == 'custom' and 'system' in selection['groups']
and 'x11-drivers/nvidia-drivers' in accepted
and any(atom.startswith('=sys-kernel/gentoo-kernel-') for atom in accepted))
and any(atom.startswith('=sys-kernel/fiw-nyx-kernel-') for atom in accepted))
if build_modules:
print('NVIDIA modules will be checked and compiled when needed for the selected custom kernel and binary fallback.')
if ask('Apply the previewed Portage files and install the accepted packages?', ['apply', 'cancel'], 'cancel') != 'apply':
@ -592,16 +589,6 @@ def install_packages(selection):
shutil.copy2(dest, backup, follow_symlinks=False)
dest.parent.mkdir(parents=True, exist_ok=True)
dest.write_text(content)
if selection['kernel'] == 'custom' and 'system' in selection['groups']:
patch_dir = Path('/etc/portage/patches/sys-kernel/gentoo-kernel')
patch_dir.mkdir(parents=True, exist_ok=True)
for src in (REPO / 'optional/kernel/patches').glob('*.patch'):
dest = patch_dir / src.name
if dest.exists():
backup = backup_root / dest.relative_to('/')
backup.parent.mkdir(parents=True, exist_ok=True)
shutil.copy2(dest, backup)
shutil.copy2(src, dest)
overlay = Path('/var/db/repos/fiw-dots')
if overlay.exists():
shutil.copytree(overlay, backup_root / 'overlay', symlinks=True)

View file

@ -1,45 +0,0 @@
#!/usr/bin/env bash
# fiw-cachy-patch <kernel-version>
# Regenerates the CachyOS patch for gentoo-kernel: diff of CachyOS's released
# source tree (github.com/CachyOS/linux, tag cachyos-<ver>-<n>) against vanilla
# kernel.org <ver>. Installs it and unlocks that version in the build guard.
set -euo pipefail
ver=${1:?usage: fiw-cachy-patch <kernel-version, e.g. 7.2.8>}
major=${ver%%.*}
patchdir=/etc/portage/patches/sys-kernel/gentoo-kernel
guard=/etc/portage/env/sys-kernel/gentoo-kernel
name_cfg=/etc/kernel/config.d/99-name.config
work=$(mktemp -d /var/tmp/fiw-cachy.XXXXXX)
trap 'rm -rf "$work"' EXIT
cd "$work"
# Newest CachyOS release for this kernel version (cachyos-7.2.8-1, -2, ...)
releases=$(curl -fsSL "https://api.github.com/repos/CachyOS/linux/releases?per_page=50")
tag=$(printf '%s\n' "$releases" |
grep -oE "\"tag_name\": *\"cachyos-${ver//./\\.}-[0-9]+\"" |
grep -oE "cachyos-[0-9.]+-[0-9]+" | sort -V | tail -1 || true)
[[ -n $tag ]] || { echo "CachyOS has no release for $ver yet" >&2; exit 1; }
echo "Using $tag"
curl -fsSLO "https://cdn.kernel.org/pub/linux/kernel/v${major}.x/linux-${ver}.tar.xz"
curl -fsSLO "https://cdn.kernel.org/pub/linux/kernel/v${major}.x/sha256sums.asc"
grep " linux-${ver}.tar.xz\$" sha256sums.asc | sha256sum -c -
curl -fsSLO "https://github.com/CachyOS/linux/releases/download/${tag}/${tag}.tar.gz"
mkdir a b
tar -xf "linux-${ver}.tar.xz" -C a --strip-components=1
tar -xf "${tag}.tar.gz" -C b --strip-components=1
grep -qx "SUBLEVEL = ${ver##*.}" b/Makefile || { echo "$tag is not $ver" >&2; exit 1; }
rc=0
diff -ruN --no-dereference -x .git a b >"${tag}.patch" || rc=$?
((rc <= 1)) || { echo "diff failed" >&2; exit 1; }
mkdir -p "$patchdir"
rm -f "$patchdir"/0100-cachyos-*.patch
install -m644 "${tag}.patch" "$patchdir/0100-${tag}.patch"
sed -i "s/^FIW_CACHY_PV=.*/FIW_CACHY_PV=${ver}/" "$guard"
grep ^CONFIG_LOCALVERSION "$name_cfg"
echo "Installed $patchdir/0100-${tag}.patch; guard now allows ${ver}."
echo "Next: emerge -1 =sys-kernel/gentoo-kernel-${ver}"

71
optional/fiw-nyx-bump Executable file
View file

@ -0,0 +1,71 @@
#!/usr/bin/env bash
# fiw-nyx-bump [series]
# Keeps sys-kernel/fiw-nyx-kernel::fiw on CachyOS's newest release in the
# kernel series it is on (or in [series], e.g. 7.3, to move to a new one):
# - copies the newest fiw-nyx-kernel ebuild to <ver>-r<cachyos release>,
# taking the Gentoo patchset and config versions from ::gentoo's
# gentoo-kernel for that series, plus a matching virtual/dist-kernel
# (so nvidia-drivers and other dist-kernel modules rebuild for it),
# with Manifests;
# - writes /etc/portage/package.mask/fiw-nyx so virtual/dist-kernel and
# gentoo-kernel-bin never run ahead of the Nyx kernel (modules build for
# the newest kernel installed, which must be Nyx).
# Run as root (the postsync hook does). Keeps the two newest Nyx versions.
set -euo pipefail
repo=${FIW_NYX_REPO:-$(portageq get_repo_path / fiw)}
gentoo=$(portageq get_repo_path / gentoo)
pkgdir=$repo/sys-kernel/fiw-nyx-kernel
vdir=$repo/virtual/dist-kernel
mask=${FIW_NYX_MASK:-/etc/portage/package.mask/fiw-nyx}
newest=$(ls "$pkgdir"/fiw-nyx-kernel-*.ebuild | sort -V | tail -1)
cur=$(basename "$newest" .ebuild); cur=${cur#fiw-nyx-kernel-} # 7.2.11-r1
cur_ver=${cur%-r*}
series=${1:-${cur_ver%.*}}
tag=$(curl -fsSL "https://api.github.com/repos/CachyOS/linux/releases?per_page=100" |
grep -oE "\"tag_name\": *\"cachyos-${series//./\\.}\.[0-9]+-[0-9]+\"" |
grep -oE "cachyos-[0-9.]+-[0-9]+" | sort -uV | tail -1) || true
if [[ -z $tag ]]; then
echo "fiw-nyx-bump: CachyOS has no ${series}.x release; staying on ${cur}"
tag=cachyos-${cur%-r*}-${cur##*-r}
fi
ver=${tag#cachyos-}; rel=${ver##*-}; ver=${ver%-*}
target=$pkgdir/fiw-nyx-kernel-${ver}-r${rel}.ebuild
if [[ ! -e $target ]]; then
echo "fiw-nyx-bump: adding fiw-nyx-kernel-${ver}-r${rel} (${tag})"
cp "$newest" "$target"
# Gentoo's patchset/config for this series, from its own gentoo-kernel.
ref=$(ls "$gentoo"/sys-kernel/gentoo-kernel/gentoo-kernel-"${series}".*.ebuild 2>/dev/null | sort -V | tail -1 || true)
if [[ -n $ref ]]; then
for var in PATCHSET CONFIG_VER GENTOO_CONFIG_P; do
val=$(sed -n "s/^${var}=//p" "$ref" | head -1)
[[ -n $val ]] && sed -i "s|^${var}=.*|${var}=${val}|" "$target"
done
# the patchset's directory on distfiles.gentoo.org follows its series
pset=$(sed -n 's/^PATCHSET=linux-gentoo-patches-//p' "$target")
sed -i "s|patchsets/[0-9]*\.[0-9]*/|patchsets/${pset%.*}/|" "$target"
fi
vnewest=$(ls "$vdir"/dist-kernel-*.ebuild | sort -V | tail -1)
cp "$vnewest" "$vdir/dist-kernel-${ver}-r${rel}.ebuild"
# Keep the two newest versions (and their virtuals), then the Manifests
# (thin: they fetch every listed version's sources, so prune first).
ls "$pkgdir"/fiw-nyx-kernel-*.ebuild | sort -V | head -n -2 | while read -r old; do
v=$(basename "$old" .ebuild); v=${v#fiw-nyx-kernel-}
rm -f "$old" "$vdir/dist-kernel-${v}.ebuild"
done
ebuild "$target" manifest
ebuild "$vdir/dist-kernel-${ver}-r${rel}.ebuild" manifest
chown -R --reference="$repo" "$pkgdir" "$vdir"
fi
cat >"$mask.tmp" <<EOF
# Written by fiw-nyx-bump: dist-kernel modules (nvidia-drivers) build for
# the newest installed kernel, so nothing may get ahead of fiw-nyx-kernel.
>virtual/dist-kernel-${ver}-r${rel}
>sys-kernel/gentoo-kernel-bin-${ver}
EOF
mv "$mask.tmp" "$mask"
echo "fiw-nyx-bump: Nyx is at ${ver}-r${rel} (${tag})"

View file

@ -1,4 +1,4 @@
# uname -r → <linux version>-fiw-nyx-v<own version>, e.g. 7.2.10-fiw-nyx-v1.2.
# uname -r → <linux version>-fiw-nyx-v<own version>, e.g. 7.3.1-fiw-nyx-v1.2.
# Only the kernel version plus Fiw's name: no CachyOS release number or other extras.
# Bump v<N> by hand when you change your own tweaks.
# History: v1 = "-1-fiwzen-v1" (first build), v1.1 = renamed to fiw-nyx,

4
optional/kernel/env Normal file
View file

@ -0,0 +1,4 @@
# Installed as /etc/portage/env/sys-kernel/fiw-nyx-kernel
# /proc/version → "... (fiw@gentoo) ..."
export KBUILD_BUILD_USER=fiw
export KBUILD_BUILD_HOST=gentoo

View file

@ -1,19 +0,0 @@
# Installed as /etc/portage/env/sys-kernel/gentoo-kernel
# /proc/version → "... (fiw@gentoo) ..."
export KBUILD_BUILD_USER=fiw
export KBUILD_BUILD_HOST=gentoo
# Version the CachyOS patch in /etc/portage/patches was generated for.
# fiw-cachy-patch rewrites this line (the postsync hook runs it when CachyOS
# has a release for a new gentoo-kernel). A newer point release in the same
# series (7.2.x) reuses the existing patch and config.d unchanged; if the patch
# no longer applies, the build stops and the installed kernels stay as they are.
FIW_CACHY_PV=7.2.10
pre_src_prepare() {
[[ ${PV} == "${FIW_CACHY_PV}" ]] && return
if [[ ${PV%.*} != "${FIW_CACHY_PV%.*}" ]]; then
die "CachyOS patch is for ${FIW_CACHY_PV}; ${PV} is a new series. Run: fiw-cachy-patch ${PV}"
fi
ewarn "No CachyOS patch for ${PV} yet: reusing the ${FIW_CACHY_PV} patch and config."
ewarn "Fallbacks if it misbehaves: gentoo-kernel-bin entry, or CachyOS."
}

File diff suppressed because it is too large Load diff

View file

@ -1,9 +1,8 @@
{
"atom": "=sys-kernel/gentoo-kernel-7.2.10",
"patch_kernel": "7.2.10",
"cachyos_tag": "cachyos-7.2.10-1",
"atom": "=sys-kernel/fiw-nyx-kernel-7.3.1-r1",
"kernel": "7.3.1",
"cachyos_tag": "cachyos-7.3.1-1",
"tested_kernel_versions": [
"7.2.10"
],
"patch_sha256": "ed5f06622f9045ac3938e7c89270622f647252dd6e9e6c699b7ff8368a829b1a"
"7.3.1"
]
}

View file

@ -0,0 +1,4 @@
DIST cachyos-7.3.1-1.tar.gz 269676681 BLAKE2B b744477e1202ae7c63020645fdd923625da6edd2bde61d01d9c7755e6d9628fc3fb00e615261f02a5c503d5c890cb9f8e1e9f068aea7ed01fda45b2d64e7216a SHA512 b261008e443d84a5dacd81686997b154731204c06b539216551d6cf31fc4491ef9e134966364b378c7d9a0b8010208512f88dc8b5bafea73d85535558cbc4117
DIST fedora-kernel-config-7.3.1-gentoo.tar.xz 272064 BLAKE2B df976c1d28108f3f7427c0535b9d28350e1dd070d050afdcb6677228f594813c2ac5ab9926e51ab53937666334879391d54563b79cb0e5c3887c61e83915ab14 SHA512 c9fb3ccc18cd2aed1d593344386e15c463806ecb909a9616576ae81a8e00b9c82860e941f0aad3c80bf1fd4ef84f3273ba1fcf7ce45520ed4372e5908affcd4f
DIST gentoo-kernel-config-g19.tar.bz2 5610 BLAKE2B ad20063ac54c8b1485a06877e1d741b3b2c0a82967e8a84b1c475fc775178de3be39942e0ae00ca3bf2bb37f586da3de35df0d8229f14e1f7f77fa9819c907bf SHA512 7e4846265a3ab9f02c121b4eeeaf494f5f0568b309fc1245a47608a88c520b5b2c265c26bcebfb66710494951cefe718ce6acb4c6292138d46221003b74556b3
DIST linux-gentoo-patches-7.3.1.tar.xz 8932 BLAKE2B 25d8ec1cf52c1ee729e1202a30b7173ce887ca64d1b4e10791d7ef1cd43a311ebfcc570795e013464b4317799ffecb0d0cc3ec137a4f648cd4d874d9476c5bba SHA512 6ce5b26aa818370116805ea6ba4c03048178d4c1fc31ee21cc6bf1b43b537ccdfd96eda606f9af558cb65ccc4b03043c295a5546648ba09ff96fde051344673b

View file

@ -0,0 +1,81 @@
# Copyright 2026 Fiw
# Distributed under the terms of the GNU General Public License v2
# Fiw's Nyx kernel: CachyOS's released source tree (github.com/CachyOS/linux)
# built the Gentoo distribution-kernel way: Gentoo's patchset and Fedora +
# Gentoo base config, then /etc/kernel/config.d (CachyOS options, own
# tweaks, the -fiw-nyx-vN name), installed through installkernel.
#
# Version = kernel version, revision = CachyOS release:
# fiw-nyx-kernel-7.2.11-r1 -> tag cachyos-7.2.11-1
# fiw-nyx-bump adds new versions when CachyOS releases them.
# Based on sys-kernel/gentoo-kernel (amd64 only).
EAPI=8
KERNEL_IUSE_GENERIC_UKI=1
inherit kernel-build toolchain-funcs
CACHY_TAG=cachyos-${PV}-${PR#r}
PATCHSET=linux-gentoo-patches-7.3.1
CONFIG_VER=7.3.1-gentoo
GENTOO_CONFIG_P=gentoo-kernel-config-g19
DESCRIPTION="CachyOS-patched Linux kernel built the Gentoo dist-kernel way (Nyx)"
HOMEPAGE="
https://github.com/CachyOS/linux
https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
"
SRC_URI+="
https://github.com/CachyOS/linux/releases/download/${CACHY_TAG}/${CACHY_TAG}.tar.gz
https://distfiles.gentoo.org/pub/proj/dist-kernel/patchsets/7.3/${PATCHSET}.tar.xz
https://gitweb.gentoo.org/proj/dist-kernel/gentoo-kernel-config.git/snapshot/${GENTOO_CONFIG_P}.tar.bz2
https://distfiles.gentoo.org/pub/proj/dist-kernel/config/fedora-kernel-config-${CONFIG_VER}.tar.xz
"
S=${WORKDIR}/${CACHY_TAG}
KEYWORDS="~amd64"
IUSE="+debug"
BDEPEND="
debug? ( dev-util/pahole )
"
PDEPEND="
>=virtual/dist-kernel-${PV}
"
QA_FLAGS_IGNORED="
usr/src/linux-.*/scripts/gcc-plugins/.*.so
usr/src/linux-.*/vmlinux
"
src_prepare() {
[[ ${PR} == r0 ]] && die "Name the revision after the CachyOS release: ${PN}-${PV}-r<N> = ${PN#*-}-${PV}-<N>"
grep -qx "SUBLEVEL = $(ver_cut 3)" Makefile || die "${CACHY_TAG} is not ${PV}"
eapply "${WORKDIR}/${PATCHSET}"
default
# The name is only <version>-fiw-nyx-vN (CONFIG_LOCALVERSION from
# /etc/kernel/config.d), never a CachyOS release or other extras.
sed -i -e "s:^\(EXTRAVERSION =\).*:\1:" Makefile || die
cp "${WORKDIR}/fedora-kernel-config-${CONFIG_VER}/kernel-x86_64-fedora.config" .config || die
# Placeholder name; /etc/kernel/config.d/99-name.config sets the real one.
echo 'CONFIG_LOCALVERSION="-fiw-nyx"' > "${T}"/version.config || die
local dist_conf_path="${WORKDIR}/${GENTOO_CONFIG_P}"
local merge_configs=(
"${T}"/version.config
"${dist_conf_path}"/base.config
"${dist_conf_path}"/6.12+.config
)
use debug || merge_configs+=( "${dist_conf_path}"/no-debug.config )
use secureboot && merge_configs+=(
"${dist_conf_path}/secureboot.config"
"${dist_conf_path}/zboot.config"
)
kernel-build_merge_configs "${merge_configs[@]}"
}

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<longdescription>
CachyOS's released kernel tree with Gentoo's patchset and
distribution-kernel config, named -fiw-nyx-vN through
/etc/kernel/config.d. The ebuild revision is the CachyOS release.
</longdescription>
<upstream>
<remote-id type="github">CachyOS/linux</remote-id>
</upstream>
</pkgmetadata>

View file

@ -0,0 +1,22 @@
# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# ::fiw copy of virtual/dist-kernel that also accepts sys-kernel/fiw-nyx-kernel,
# so dist-kernel modules (nvidia-drivers) rebuild for the Nyx kernel. Same
# version and revision as the Nyx kernel: a new CachyOS release changes the
# subslot and rebuilds the modules. fiw-nyx-bump keeps them in step.
EAPI=8
DESCRIPTION="Virtual to depend on any Distribution Kernel (incl. fiw-nyx-kernel)"
SLOT="0/${PVR}"
KEYWORDS="~amd64"
RDEPEND="
|| (
~sys-kernel/fiw-nyx-kernel-${PV}
~sys-kernel/gentoo-kernel-${PV}
~sys-kernel/gentoo-kernel-bin-${PV}
~sys-kernel/vanilla-kernel-${PV%_p*}
)
"

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<stabilize-allarches/>
</pkgmetadata>

View file

@ -0,0 +1,4 @@
# Since 2.69.0 the ebuild ties ENABLE_IMAGE_LOGO to USE=imagemagick, which also
# disables kitty-direct. That type only sends the file path to Kitty, so it does
# not need ImageMagick.
MYCMAKEARGS="-DENABLE_IMAGE_LOGO=ON"

View file

@ -0,0 +1 @@
app-misc/fastfetch fiw-dots-fastfetch.conf

View file

@ -1,2 +1,2 @@
sys-kernel/gentoo-kernel fiw-dots-notmpfs.conf
sys-kernel/fiw-nyx-kernel fiw-dots-notmpfs.conf
sys-devel/gcc fiw-dots-notmpfs.conf

View file

@ -1,2 +1,2 @@
sys-kernel/gentoo-kernel fiw-dots-notmpfs.conf
sys-kernel/fiw-nyx-kernel fiw-dots-notmpfs.conf
sys-devel/gcc fiw-dots-notmpfs.conf

View file

@ -8,7 +8,7 @@ RUSTFLAGS="${RUSTFLAGS} -C target-cpu=znver5"
MAKEOPTS="-j16 -l24"
# Out-of-tree modules must match the local kernel build: never use binhost packages for these.
EMERGE_DEFAULT_OPTS="--jobs=2 --load-average=24 --with-bdeps=y --getbinpkg --usepkg-exclude=x11-drivers/nvidia-drivers --usepkg-exclude=sys-kernel/gentoo-kernel --usepkg-exclude=app-arch/zip --usepkg-exclude=app-misc/fastfetch --usepkg-exclude=app-misc/jq --rebuilt-binaries=n"
EMERGE_DEFAULT_OPTS="--jobs=2 --load-average=24 --with-bdeps=y --getbinpkg --usepkg-exclude=x11-drivers/nvidia-drivers --usepkg-exclude=sys-kernel/fiw-nyx-kernel --usepkg-exclude=app-arch/zip --usepkg-exclude=app-misc/fastfetch --usepkg-exclude=app-misc/jq --rebuilt-binaries=n"
FEATURES="buildpkg getbinpkg parallel-fetch"
PORTAGE_TMPDIR="/var/tmp"

View file

@ -25,7 +25,6 @@ def check():
and not any(part in ('local', 'build', '.git', '__pycache__') for part in p.relative_to(REPO).parts)]
else:
files = result.stdout.splitlines()
snapshot = json.loads((REPO / 'optional/kernel/snapshot.json').read_text())
attribution = json.loads((REPO / 'tools/public-attribution.json').read_text())
errors = []
for relative in sorted(set(files)):
@ -37,12 +36,6 @@ def check():
if not path.is_file():
continue
raw = path.read_bytes()
if relative.startswith('optional/kernel/patches/'):
if hashlib.sha256(raw).hexdigest() != snapshot['patch_sha256']:
errors.append(relative + ': upstream patch checksum changed')
# Reviewed upstream source patch contains public test UUIDs and
# author addresses; only this fingerprinted artifact is exempt.
continue
if b'\0' in raw:
continue
try: