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
Nix/NixOS
Search
Sibi
January 08, 2022
Technology
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Nix/NixOS
Sibi
January 08, 2022
More Decks by Sibi
See All by Sibi
Just
psibi
0
100
Rust
psibi
2
330
OPA for policy enforcement
psibi
0
74
Rust + Credstash
psibi
0
88
ASG and lifecycle hooks
psibi
0
64
Haskell + Azure Pipelines
psibi
0
97
Web programming in Haskell using Yesod
psibi
0
170
Monad
psibi
1
190
Science behind Quantum Computing
psibi
0
310
Other Decks in Technology
See All in Technology
Agentic AI 時代のテスト手法: Kiro とはじめるプロパティベーステスト (AWS Summit Japan 2026 | DEV212)
ymhiroki
0
210
ループエンジニアリングでE2Eテストを実践
noriyukitakei
0
290
GuardrailからGovernanceへ~AIエージェント運用の次の課題~
sbspsy
1
190
Amazon EVS で VCF 9.0 / 9.1 のサポート開始まとめ
mtoyoda
0
250
AI時代のエンジニアキャリアについて今一度考える
sakamoto_582
1
1.2k
生成AIの活用/high_school2026
okana2ki
0
100
打造你的 AI 工作流:Agent Skill + MCP 實戰工作坊
appleboy
0
630
小さいから、全部わかる。— 常駐AI "xangi" のすすめ
sugupoko
0
270
Kotlin 開発のツラミを爆破した話! / Explode the difficulty of Kotlin dev!
eller86
0
150
【FinOps】データドリブンな意思決定を目指して
z63d
3
610
なぜ私たちのSREプラクティスはなかなか機能しないのか 〜システムより先に組織を見る〜 / Why our SRE practices aren't really working
vtryo
0
820
Oracle Exadata Database Service on Cloud@Customer X11M (ExaDB-C@C) サービス概要
oracle4engineer
PRO
2
8.3k
Featured
See All Featured
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
580
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
460
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.1k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
310
The Invisible Side of Design
smashingmag
301
52k
30 Presentation Tips
portentint
PRO
1
340
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
150
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
490
It's Worth the Effort
3n
188
29k
Transcript
NIX/NIXOS ILUGC Sibi Prabakaran Jan 8, 2022
None
AGENDA My experience with Nix/NixOS Introduction Why Nix
MY EXPERIENCE Tried NixOS around 5 years ago Initially used
nixpkgs in Ubuntu For around ~1.5 years Using NixOS for ~ 1 year Maintainer of various packages
NIX/NIXPKGS/NIXOS Nix: Pure, lazy functional language. Not a general purpose
language! Used for package description, composition Nixpkgs: Collection of packages. NixOS: Linux + nixpkgs System configuration also managed via Nix
WHY NIX/NIXOS Reproducibility bit identical Multiple versions of a software
Atomic upgrades and rollbacks Declarative
BASIC WORKFLOW configuration.nix home manager writing script Usage is pretty
similar to other distros.
NIX LANGUAGE Lazy, Functional and Pure Functions, Sets, Lists etc.
Reference: https://nixos.wiki/wiki/Nix_Expression_Language
NIX EXPRESSION Code written in Nix language ❯ nix-instantiate --eval
--expr "2 + 2" 4 ❯ cat example.nix 2 + 2 ❯ nix-instantiate --eval example.nix 4
REAL WORLD NIX CODE Package: systemd service: amber cnx
NIX DERIVATIONS Recipe to build the end product. Reproducible &
Deterministic ❯ fd -e drv nix /nix/store | head -n 5 /nix/store/ix9j7fmxpfp7c0b2rn95wyy5y1803mya-nixos- manual.desktop.drv /nix/store/2a6ylyfsxb8knnana40fbnmk8ka7q1na-etc- nixos.conf.drv /nix/store/6r57mn57p9rgijr0lsfihkdkk2djkv86-nixos- manpages.drv /nix/store/ppsdnzviyi9q2xqak9qk0w16hpj30frj-nixos.conf.drv /nix/store/bp7flklzjxhm966b0d0pxi85dg4zbqpa-nix-prefetch- cvs.drv
DERVIATION.. ❯ nix show-derivation derivation
COMMUNITY 80,000 packages Easy to add package as compared to
other distributions Images available for cloud providers nix-community organization
DISADVANTAGES No secure boot. Nix specific issues! Learning curve Debugging
experience Size of user community Things are still changing: Flakes!
QUESTIONS