linuxPackages.bbswitch: install module through modules_install by adomixaszvers · Pull Request #576881 · NixOS/nixpkgs · GitHub
Skip to content

linuxPackages.bbswitch: install module through modules_install - #576881

Open
adomixaszvers wants to merge 1 commit into
NixOS:masterfrom
adomixaszvers:push-vrpwtltloktm
Open

adomixaszvers wants to merge 1 commit into
NixOS:masterfrom
adomixaszvers:push-vrpwtltloktm

Conversation

@adomixaszvers

@adomixaszvers adomixaszvers commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Fixes issue while building kernel modules

structuredAttrs is enabled
created 19 symlinks in user environment
structuredAttrs is enabled
kernel version is 6.18.57
cat: misc/bbswitch.ko.cer: No such file or directory

I have tested the this fix with my Nvidia 630M

$ modinfo bbswitch
filename:       /run/booted-system/kernel-modules/lib/modules/6.18.57/kernel/misc/bbswitch.ko.xz
version:        0.8
author:         Peter Wu <lekensteyn@gmail.com>
description:    Toggle the discrete graphics card
license:        GPL
srcversion:     83C4A9B761564926B497EBD
depends:        
name:           bbswitch
retpoline:      Y
vermagic:       6.18.57 SMP preempt mod_unload 
sig_id:         PKCS#7
signer:         
sig_key:        
sig_hashalgo:   unknown
signature:      
parm:           load_state:Initial card state (0 = off, 1 = on, -1 = unchanged) (int)
parm:           unload_state:Card state on unload (0 = off, 1 = on, -1 = unchanged) (int)
parm:           skip_optimus_dsm:Skip probe of Optimus discrete DSM (default = false) (bool)

Things done

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! labels Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant