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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Aki
May 30, 2026
510
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
5
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
Utilizing Notion as your number one productivity tool
mfonobong
4
320
Context Engineering - Making Every Token Count
addyosmani
9
960
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
310
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
220
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
Heart Work Chapter 1 - Part 1
lfama
PRO
7
36k
WENDY [Excerpt]
tessaabrams
11
38k
Building AI with AI
inesmontani
PRO
1
1.1k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.4k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
570
Game over? The fight for quality and originality in the time of robots
wayneb77
1
200
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 向けに移植した方が良いかも...