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
【Data Engineering Summit2026_登壇資料】医療ビッグデータ×AIエージェントを支えるデータ基盤とハーネスエンジニアリング
jmdc_presentation
0
170
Optunaの最新リリースv5.0について
pfn
PRO
0
110
その Valkey 使いこなしていますか?
onk
PRO
5
1.5k
DGX Spark でどこまでハッキングができるのか?
kash1064
3
1.3k
LambdaWebFunctionsを試してみた / exploring-lambda-web-functions
koukihosaka
1
320
事業成長とデータ活用を止めないためのマネジメントへ挑戦
hiracky16
0
390
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
1
190
AIカンパニーへの転換を支えた、エンジニアの仕事の再定義
kworkdev
PRO
2
1.2k
実践! SRE × AI - ABEMA における AIOps -
tetsuya28
8
3.1k
10年後、Engineering 行為を剥奪されるとして、わたしたちは、どう、何を創ればいいだろうか。 / If Engineering Is Taken Away in 10 Years, How and What Should We Create?
bitkey
PRO
1
190
大型犬好きによるPugの紹介
yamanoku
1
160
オントロジーって 結局なにもの? AI エージェントに「意味」を渡す知識設計の話
greenmidori
0
170
Featured
See All Featured
Designing Powerful Visuals for Engaging Learning
tmiket
1
610
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Balancing Empowerment & Direction
lara
6
1.3k
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
740
The Curious Case for Waylosing
cassininazir
1
570
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
410
Marketing to machines
jonoalderson
1
5.9k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Scaling GitHub
holman
464
140k
Designing for humans not robots
tammielis
254
26k
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