From f17e415fdfb092f4f89abfac13c403dec98ea926 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Thu, 9 Apr 2026 15:44:41 +0800 Subject: transformations: nvidia: Add #:dynamic-boost? argument. * nonguix/transformations.scm (nonguix-transformation-nvidia): Add #:dynamic-boost? argument. * README.org (Configure operating system for NVIDIA proprietary driver): Update docstring. * NEWS (NVIDIA: New #:dynamic-boost? option in nonguix-transformation-nvidia): New entry. --- NEWS | 5 +++++ README.org | 3 +++ nonguix/transformations.scm | 11 ++++++----- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 11f2b4d..037e426 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,11 @@ #+TITLE: NEWS about user visible changes of nonguix * 2026-04 +*** NVIDIA: New #:dynamic-boost? argument for nonguix-transformation-nvidia +The feature is supported on laptops since Ampere. For detailed introduction and +hardware requirements, see +. + *** NVIDIA: open source kernel modules now built from git From testing, their compatibility with kernels is different from the ones we packaged before. Please refer to our documentation for currently supported diff --git a/README.org b/README.org index 8c9240b..bff334d 100644 --- a/README.org +++ b/README.org @@ -288,6 +288,7 @@ System setup is implemented via =nonguix-transformation-nvidia=: [#:open-source-kernel-module? #false] [#:kernel-mode-setting? #true] [#:configure-xorg? #false] + [#:dynamic-boost? #false] [#:remove-nvenc-restriction? #false] Return a procedure that transforms an operating system, setting up DRIVER @@ -302,6 +303,8 @@ System setup is implemented via =nonguix-transformation-nvidia=: CONFIGURE-XORG? (default: #f) is required for Xorg display managers. It accepts a display manager service type, or #t when using '%desktop-services'. + DYNAMIC-BOOST? (default: #f) is supported on laptops since Ampere. + REMOVE-NVENC-RESTRICTION? (default: #f) applies patches from . #+end_example diff --git a/nonguix/transformations.scm b/nonguix/transformations.scm index ba05ccb..c0470ac 100644 --- a/nonguix/transformations.scm +++ b/nonguix/transformations.scm @@ -107,6 +107,7 @@ and INITRD (default: microcode-initrd)." (open-source-kernel-module? #f) (kernel-mode-setting? #t) (configure-xorg? #f) + (dynamic-boost? #f) (remove-nvenc-restriction? #f) ;; Deprecated. (s0ix-power-management? #f)) @@ -122,6 +123,8 @@ support. CONFIGURE-XORG? (default: #f) is required for Xorg display managers. It accepts a display manager service type, or #t when using '%desktop-services'. +DYNAMIC-BOOST? (default: #f) is supported on laptops since Ampere. + REMOVE-NVENC-RESTRICTION? (default: #f) applies patches from ." @@ -256,11 +259,9 @@ REMOVE-NVENC-RESTRICTION? (default: #f) applies patches from driver))) (define %dynamic-boost? - (not (assoc-ref - ;; Unsupported in these series. - `((,nvda-470 . #t) - (,nvda-390 . #t)) - driver))) + (and dynamic-boost? + ;; Unsupported in these series. + (not (member driver (list nvda-470 nvda-390))))) (define %xorg-extension (and=> configure-xorg? -- cgit v1.3