Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
swayfx for nvidia GPU (敗北)
Search
Aki
May 30, 2026
600
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
9
Featured
See All Featured
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
350
The Curse of the Amulet
leimatthew05
3
15k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
290
Designing for Performance
lara
611
70k
Crafting Experiences
bethany
1
360
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
250
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
240
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
600
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
530
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
sira's awesome portfolio website redesign presentation
elsirapls
0
430
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 向けに移植した方が良いかも...