sys-kernel/cachyos-settings - 1.4.5 (xarblu-overlay)

Search

Install

Install this version:

emerge -a =sys-kernel/cachyos-settings-1.4.5

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-kernel/cachyos-settings-1.4.5

Or alternatively:

emerge --autounmask-write -a =sys-kernel/cachyos-settings-1.4.5

Package Information

Description:
Configuration files and tweaks from CachyOS
Homepage:
https://github.com/CachyOS/CachyOS-Settings
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
1.4.5 8 ~amd64 0
View Raw Ebuild
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# shellcheck shell=bash
# shellcheck disable=SC2034

EAPI=8

inherit udev tmpfiles systemd

DESCRIPTION="Configuration files and tweaks from CachyOS"
HOMEPAGE="https://github.com/CachyOS/CachyOS-Settings"
SRC_URI="https://github.com/CachyOS/CachyOS-Settings/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/CachyOS-Settings-${PV}"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="systemd wifi zram"
REQUIRED_USE="zram? ( systemd ) wifi? ( systemd )"

RDEPEND="
	app-shells/bash
	sys-apps/hdparm
	sys-apps/pciutils
	sys-process/procps
	virtual/udev
	wifi? ( net-wireless/iw )
	zram? (
		sys-apps/zram-generator
		app-arch/zstd
	)
"

src_prepare() {
	default

	# move to more FHS appropriate /usr/libexec
	mkdir -p usr/libexec || die
	mv usr/lib/iw-set-regdomain usr/libexec/iw-set-regdomain || die
	sed -i -e 's|usr/lib/iw-set-regdomain|usr/libexec/iw-set-regdomain|g' \
		usr/lib/systemd/system/cachyos-iw-set-regdomain.service || die

	mv usr/lib/udev/audio-pm-ctl usr/libexec/audio-pm-ctl || die
	sed -i -e 's|usr/lib/udev/audio-pm-ctl|usr/libexec/audio-pm-ctl|g' \
		usr/lib/udev/rules.d/20-audio-pm.rules || die
}

src_install() {
	local shopt
	shopt="$(shopt -p globstar)"
	shopt -s globstar

	for file in **; do
		# skip dirs
		[[ -f "${file}" ]] || continue

		case "${file}" in
			# === skipped ===
			# points to CachyOS/Arch resources/branding (servers, wiki, etc.)
			etc/debuginfod/cachyos.urls) ;&
			usr/bin/cachyos-bugreport.sh) ;&
			usr/bin/paste-cachyos) ;&
			usr/lib/systemd/timesyncd.conf.d/10-timesyncd.conf) ;&
			usr/share/glib-2.0/schemas/*) ;&
			usr/share/icons/*) ;&
			# repo metadata
			CODE_OF_CONDUCT.md) ;&
			CONTRIBUTING.md) ;&
			LICENSE.md) ;&
			README.md) ;&
			# maybe behind USE=lua?
			usr/bin/topmem) ;&
			# maybe behind USE=systemd?
			usr/lib/NetworkManager/conf.d/dns.conf) ;&
			# Easy Anti Cheat v2 stuff depends on CachyOS signing we don't have
			usr/bin/eac-*) ;&
			# misc unneeded
			usr/bin/sbctl-batch-sign)
				continue
				;;

			# === conditionally skipped ===
			# USE=zram
			usr/lib/systemd/system/systemd-zram-setup@.service.d/xswap.conf) ;&
			usr/lib/systemd/zram-generator.conf) ;&
			usr/lib/udev/rules.d/30-zram.rules)
				use zram || continue
				;;&

			# USE=systemd
			# calls systemd-inhibit
			usr/bin/game-performance) ;&
			# calls journalctl
			usr/bin/kerver) ;&
			# everything else systemd
			usr/lib/systemd/*)
				use systemd || continue
				;;&

			# USE=wifi
			usr/lib/systemd/system/cachyos-iw-set-regdomain.path) ;&
			usr/lib/systemd/system/cachyos-iw-set-regdomain.service) ;&
			usr/lib/udev/rules.d/85-iw-regulatory.rules) ;&
			usr/libexec/iw-set-regdomain)
				use wifi || continue
				;;&

			# === install ===
			# systemd system units
			usr/lib/systemd/system/*.service) ;&
			usr/lib/systemd/system/*.path)
				einfo "Installing systemd system unit: ${file@Q}"
				systemd_dounit "${file}"
				;;

			# systemd user units
			usr/lib/systemd/user/*.service) ;&
			usr/lib/systemd/user/*.path)
				einfo "Installing systemd user unit: ${file@Q}"
				systemd_douserunit "${file}"
				;;

			# systemd system generators
			usr/lib/systemd/system-generators/*)
				einfo "Installing systemd system generator: ${file@Q}"
				exeinto "/usr/lib/systemd/system-generators"
				doexe "${file}"
				;;

			# systemd user generators
			usr/lib/systemd/user-generators/*)
				einfo "Installing systemd user generator: ${file@Q}"
				exeinto "/usr/lib/systemd/user-generators"
				doexe "${file}"
				;;

			# udev rules
			usr/lib/udev/rules.d/*)
				einfo "Installing udev rules: ${file@Q}"
				udev_dorules "${file}"
				;;

			# tmpfiles.d file
			usr/lib/tmpfiles.d/*)
				einfo "Installing tmpfiles.d file: ${file@Q}"
				dotmpfiles "${file}"
				;;

			# executables
			usr/bin/*)
				einfo "Installing executable: ${file@Q}"
				dobin "${file}"
				;;

			# libexec
			usr/libexec/*)
				einfo "Installing libexec executable: ${file@Q}"
				exeinto /usr/libexec
				doexe "${file}"
				;;

			# regular files
			*)
				einfo "Installing regular file: ${file@Q}"
				insinto "${file%/*}"
				doins "${file}"
				;;
		esac
	done

	${shopt}
}

pkg_postinst() {
	udev_reload
	tmpfiles_process {coredump,thp-shrinker,thp}.conf
}

pkg_postrm() {
	udev_reload
}

USE Flags

Manage flags for this package: euse -i <flag> -p sys-kernel/cachyos-settings | euse -E <flag> -p sys-kernel/cachyos-settings | euse -D <flag> -p sys-kernel/cachyos-settings

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

	app-shells/bash
	sys-apps/hdparm
	sys-apps/pciutils
	sys-process/procps
	virtual/udev
	wifi? ( net-wireless/iw )
	zram? (
		sys-apps/zram-generator
		app-arch/zstd
	)

Manifest for 1.4.5

Type File Size Source URLs
DIST cachyos-settings-1.4.5.tar.gz 47277 bytes https://github.com/CachyOS/CachyOS-Settings/archive/refs/tags/1.4.5.tar.gz