Compare commits

...
2 Commits
Author SHA1 Message Date
Hilton Chain 34502202bf rosenthal: linux-cachyos: Really make substitutable.
Follow-up to 625844a768b0aa4b3739d2c88c057dacfebcf314.
2026-10-05 11:54:18 +08:00
Hilton Chain 641f1fbd71 rosenthal: linux-cachyos: Make substitutable.
* modules/rosenthal/packages/linux.scm (linux-cachyos-lts-server)
(linux-cachyos-bore-zen4): Make substitutable.
2026-10-05 11:40:16 +08:00
+75 -71
View File
@@ -295,76 +295,80 @@
(file-append source path))) (file-append source path)))
(define-public linux-cachyos-lts-server (define-public linux-cachyos-lts-server
(let ((version "6.18.55-1")) (let* ((version "6.18.55-1")
(linux-with-zfs (kernel
(customize-linux (customize-linux
#:name "linux-cachyos-lts-server" #:name "linux-cachyos-lts-server"
#:linux #:source
(hidden-package (origin
(package (method url-fetch)
(inherit linux-libre) (uri (string-append
(version version) "https://github.com/CachyOS/linux/releases/download/cachyos-"
(supported-systems '("x86_64-linux")))) version "/cachyos-" version ".tar.gz"))
#:source (sha256
(origin (base32 "1x9hymblmpj90dhwlz7lsfkdw8fjjpnghhg0yk3qmf9x16v8nrd3")))
(method url-fetch) #:defconfig (%kernel-config "/defconfig_server")
(uri (string-append #:configs
"https://github.com/CachyOS/linux/releases/download/cachyos-" (string-join
version "/cachyos-" version ".tar.gz")) (append (cachyos-configs
(sha256 #:major-version (version-major version)
(base32 "1x9hymblmpj90dhwlz7lsfkdw8fjjpnghhg0yk3qmf9x16v8nrd3"))) #:cachy-config? #f
#:defconfig (%kernel-config "/defconfig_server") #:cpusched 'eevdf
#:configs #:cc-harder? #t
(string-join #:per-gov? #f
(append (cachyos-configs #:tcp-bbr3? #t
#:major-version (version-major version) #:HZ-ticks 300
#:cachy-config? #f #:tickrate 'full
#:cpusched 'eevdf #:preempt 'none
#:cc-harder? #t #:hugepage 'always
#:per-gov? #f #:processor-opt 'generic)
#:tcp-bbr3? #t (default-initrd-configs))
#:HZ-ticks 300 "\n"))))
#:tickrate 'full (hidden-package
#:preempt 'none (package
#:hugepage 'always (inherit (linux-with-zfs kernel))
#:processor-opt 'generic) (version version)
(default-initrd-configs)) (arguments
"\n"))))) (substitute-keyword-arguments arguments
((#:substitutable? _ #f) #t)))
(supported-systems '("x86_64-linux"))))))
(define-public linux-cachyos-bore-zen4 (define-public linux-cachyos-bore-zen4
(let ((version "7.2.9-2")) (let* ((version "7.2.9-2")
(linux-with-zfs (kernel
(customize-linux (customize-linux
#:name "linux-cachyos-bore-zen4" #:name "linux-cachyos-bore-zen4"
#:linux #:source
(hidden-package (origin
(package (method url-fetch)
(inherit linux-libre) (uri (string-append
(version version) "https://github.com/CachyOS/linux/releases/download/cachyos-"
(supported-systems '("x86_64-linux")))) version "/cachyos-" version ".tar.gz"))
#:source (sha256
(origin (base32 "1fpwmihnv9j9bvhcviia5k1dlilr0mcv17ch8rznadhlwgzyda9d"))
(method url-fetch) (patches (map %kernel-config '("/patches/bore-cachy-7.2.patch"))))
(uri (string-append #:defconfig (%kernel-config "/defconfig_desktop")
"https://github.com/CachyOS/linux/releases/download/cachyos-" #:configs
version "/cachyos-" version ".tar.gz")) (string-join
(sha256 (append (cachyos-configs
(base32 "1fpwmihnv9j9bvhcviia5k1dlilr0mcv17ch8rznadhlwgzyda9d")) #:major-version (version-major version)
(patches (map %kernel-config '("/patches/bore-cachy-7.2.patch")))) #:cachy-config? #t
#:defconfig (%kernel-config "/defconfig_desktop") #:cpusched 'bore
#:configs #:cc-harder? #t
(string-join #:per-gov? #f
(append (cachyos-configs #:tcp-bbr3? #t
#:major-version (version-major version) #:HZ-ticks 1000
#:cachy-config? #t #:tickrate 'full
#:cpusched 'bore #:preempt 'full
#:cc-harder? #t #:hugepage 'always
#:per-gov? #f #:processor-opt 'zen4)
#:tcp-bbr3? #t (default-initrd-configs))
#:HZ-ticks 1000 "\n"))))
#:tickrate 'full (hidden-package
#:preempt 'full (package
#:hugepage 'always (inherit (linux-with-zfs kernel))
#:processor-opt 'zen4) (version version)
(default-initrd-configs)) (arguments
"\n"))))) (substitute-keyword-arguments arguments
((#:substitutable? _ #f) #t)))
(supported-systems '("x86_64-linux"))))))