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
570
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
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
660
Un-Boring Meetings
codingconduct
0
390
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
Building an army of robots
kneath
306
46k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
So, you think you're a good person
axbom
PRO
2
2.1k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
Balancing Empowerment & Direction
lara
6
1.2k
KATA
mclloyd
PRO
35
15k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
400
Making the Leap to Tech Lead
cromwellryan
135
10k
Faster Mobile Websites
deanohume
310
32k
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 向けに移植した方が良いかも...