Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
swayfx for nvidia GPU (敗北)
Search
Aki
May 30, 2026
590
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
swayfx for nvidia GPU (敗北)
Kernel/VM探検隊@関西 12回目発表資料
Aki
May 30, 2026
More Decks by Aki
See All by Aki
runwasi on NixOS
aki4ki
0
7
Featured
See All Featured
It's Worth the Effort
3n
188
29k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
970
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
490
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
570
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
250
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
680
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Product Roadmaps are Hard
iamctodd
55
13k
The SEO identity crisis: Don't let AI make you average
varn
0
550
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
840
Ruling the World: When Life Gets Gamed
codingconduct
0
320
Transcript
swayfx for nvidia GPU ( 敗北) Kernel/VM/ 探検隊 関西 12
Presented by @aaki36011407
自己紹介
Aki Name: Aki (@aaki36011407) Linux が好き! 最近だとNixOS!
Wayland Compositer 使ってます か ?!
My DE is … • NixOS: unstable • WM: swayfx
• Terminal: Western • Editor: Neovim
背景 CUDA 勉強するか~ と 安っすいnvidia の GPU(RTX3050 6GB) を購入 swayfx
はある程度は動いた ( サスペンドからの復帰はコケる模様...) これはこれで良い しかし、Arch Wiki にあった以下をNixOS でやりたい
wlroots のビルド (1) AUR にあったwlroots-nvidia : nixpkgs にもその他にもない なら自分でビルドするしかない... AUR
のPKGBUILD を読んでみるとwlroots0.17.4 に独自のパッチを当ててか らビルドしている。 これをNix Flake でやろう!
wlroots のビルド (2) nixpkgs からwlroots の部分だ け持ってくる。 AUR 版のパッケージが当ててい るパッチが利用したいのでリポ
ジトリから取得する。 そこからパッチを取り出して、 PostPatch で適用する ここまではビルドに成功!
swayfx のビルド(1) swayfx のGitHub リポジトリに 含まれるflake を利用する。 このflake のinputs にここまで
で、用意したwlroots_nvidia を 入れる。 wlroots_0_19 を wlroots_nvidia に置き換える ビルド失敗!!
swayfx のビルド(2) ヘッダファイルで互換性が崩れて いるようでビルドできない( これ でも一部抜粋もっとエラーが出て る...) そもそもwlroots-nvidia の最終 コミットが2024
年6 月29 日と 古い そもそもArch でも動くの?
まとめ ビルドできなかった( 敗北) ダメ元でswayfx パッケージのLD_LIBRARY_PATH を変更する -> ダメ もっと力技でやるなら、patchelf でELF ヘッダを書き換えてしまうか?
nvidia 対応ならcrispyricepc/sway-nvidia( 別のレンダラーを使う方式) の スクリプト群をNixOS 向けに移植した方が良いかも...