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
Nix/NixOS
Search
Sibi
January 08, 2022
Technology
140
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
110
Rust
psibi
2
340
OPA for policy enforcement
psibi
0
88
Rust + Credstash
psibi
0
98
ASG and lifecycle hooks
psibi
0
75
Haskell + Azure Pipelines
psibi
0
98
Web programming in Haskell using Yesod
psibi
0
190
Monad
psibi
1
190
Science behind Quantum Computing
psibi
0
320
Other Decks in Technology
See All in Technology
スプシの手作業からの解脱 ~更新はClaude Codeに、見せ方と使い方はGASアプリに任せる~
kentarofujii
0
150
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
6
4.6k
サブエージェントと Claude Mods で作る独自 Advisor ツールの話
kenichiodo
2
160
実践!Cloud Run ハンズオン!! / Cloud Run handson
y0hgi
2
280
Kiro Crewをはじめよう
kizawa2020
1
160
エンタメ企業のM&Aを支えるデータ基盤 ― 統合から店舗のリアルタイム分析まで / Data Engineering Summit 2026
genda
0
170
re:Invent初参加で変わったこと、2回目にやってみたいこと(JAWS-UG彩の国埼玉 #12)
mhrtech
2
190
AI時代のPRレビューにどう向き合うか?
kairim0
1
240
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
5
4.8k
『SAR衛星データ解析入門』のご紹介とその応用
syuchimu
0
120
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
4
1.1k
Persisting Massive Data with Rails ~Designing for 60 billion rows, and fighting the bottlenecks~ Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
0
720
Featured
See All Featured
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
570
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.8k
Darren the Foodie - Storyboard
khoart
PRO
4
4k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Tell your own story through comics
letsgokoyo
1
1.1k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.3k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Prompt Engineering for Job Search
mfonobong
0
510
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.2k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
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