Anatomy of a NixOS Config - Part 1/2

  Рет қаралды 6,404

EmergentMind

EmergentMind

Күн бұрын

Part 1 of 2 in a description of the structure of my multi-user, multi-system NixOS configuration. This video gradually builds out a visual diagram of the structure while explaining the purpose of each part and how they all fit together.
OUTLINE
0:00 Introduction
1:10 Central staging area
2:15 Inputs
4:09 Outputs overview
4:26 Custom modules
5:09 Pathing clarification
5:25 Overlays
6:22 Custom packages
8:33 DevShell
9:25 Formatter
9:58 Wrap-up and link to part 2
OTHER VIDEOS IN THIS SERIES
Part 2: • Video
SUPPORT
If you find what I do helpful, please consider supporting my work on Ko-fi.
ko-fi.com/unmovedcentre
I intentionally keep my content ad free.
ADDITIONAL MATERIAL
- My nix-config on GitHub: github.com/EmergentMind/nix-c...
- A related article on my website Unmoved Centre: unmovedcentre.com/technology/...
EXTERNAL REFERENCES
Other people's configs reference in the video:
- Mysterio77 Starter Template: github.com/Misterio77/nix-sta...
- Mysterio77 Personal Nix-Config: github.com/Misterio77/nix-config
- Eric Tossel's nixflakes repo: github.com/erictossell/nixflakes
Official documentation referenced in the video:
- NixOS Manual: nixos.org/manual/nixos/stable...
- NixPxgs Manual, Overlays chapter: nixos.org/manual/nixpkgs/stab...
CONNECT
- Subscribe to this KZfaq channel
- My website: www.unmovedcentre.com
- X / Twitter: / emergent_mind
- GitHub: github.com/EmergentMind
- GitLab: gitlab.com/emergentmind

Пікірлер: 39
@HELLYEAHJOHN
@HELLYEAHJOHN 2 ай бұрын
Currently trying to move from Windows to NixOS and your videos are helping me a TON. I do use Linux for work but I still don't know much, and for distros as unique as NixOS high quality informative videos like this are lifesavers. Thank you so much!
@Emergent_Mind
@Emergent_Mind Ай бұрын
Thanks for the kind compliment. I'm glad to help. More content is on the way in coming weeks.
@pupip55
@pupip55 3 ай бұрын
I love nixos, but i have no coding experience so learning nixos is definitely an experience.
@marcuswest4572
@marcuswest4572 2 ай бұрын
You need to have some understanding of functional programming, eg. Haskell, as Nix is a functional language.
@pupip55
@pupip55 2 ай бұрын
@@marcuswest4572 or I could learn as I go, which is what I am doing and enjoying.
@DimasPangestu-dx7hn
@DimasPangestu-dx7hn 2 ай бұрын
Just try it, get your hand dirty. Nix is also my first programming language that I learn :)
@user-yd9od2xu9q
@user-yd9od2xu9q 3 күн бұрын
@@marcuswest4572 Define ‘need’
@nixeverything
@nixeverything 2 ай бұрын
Been using Nixos for about 3 months and still have so much to learn. This quality of a resource, if continued will certainly be tremendously helpful to all.
@Emergent_Mind
@Emergent_Mind 2 ай бұрын
Thanks for watching and for the kind compliment! There is more content coming.
@jaggrewal4950
@jaggrewal4950 3 ай бұрын
Great video, very informative, thanks for posting this up!
@Emergent_Mind
@Emergent_Mind 3 ай бұрын
Glad it was helpful!
@faccc
@faccc 2 ай бұрын
Killer intro, crystal clear! Thanks 🙏 I’m migrating to flakes on a new laptop and I’ll follow your structure which seems to have great sense. I was looking at some config examples in the past days trying to make sense of them, so your videos are godsend 🙌
@mechan1sm_
@mechan1sm_ Ай бұрын
It's probably one of the most useful videos about nixos configs
@Emergent_Mind
@Emergent_Mind Ай бұрын
Thanks for the kind compliment!
@DreamsAPI
@DreamsAPI 2 ай бұрын
Thank you for making these videos, please continue to make more, in future videos would be really cool to reference offficial Nix* docs and linking your builds to the docs so that way we can learn how to read the docs and build at the same time 😀
@Emergent_Mind
@Emergent_Mind Ай бұрын
Thanks for watching and for the comment! That's a good suggestion. You may also know that there is finally an official wiki at wiki.nixos.org/ so I will likely reference that as well. I have a few ideas for showing the reference process in the videos to help out as well.
@dxmm_acalea-lk4ts
@dxmm_acalea-lk4ts 2 ай бұрын
love the casual nyx assassin 😂
@ericspink3251
@ericspink3251 3 ай бұрын
Thanks for the great information.
@Emergent_Mind
@Emergent_Mind 3 ай бұрын
Thanks for the feedback.
@tonyn6551
@tonyn6551 2 ай бұрын
Great presentation style, VERY helpful diagrams, and perfect level of detail. I am a NixOS newbie, with 1 month of daily driving so far. Basic config with no flakes and no-home manager. I (and I am sure others) would really love your opinion (and video) how to migrate to the well designed, future-proof structure, without having to re-do from scratch. First introduce basic starting flake and home-manager? Then introduce your patterned structure? Starting from scratch feels like a major step backwards. Is gradual introduction feasible? Keep the videos coming. Much needed for us NixOS NOOBS.
@Emergent_Mind
@Emergent_Mind 2 ай бұрын
Thank you for the excellent comment! A gradual migration to this sort of structure is certainly possible but I can see that, without knowing where to put the various pieces, it could feel like a slog or step backwards. In the future I would like to put something together based on your suggestion of starting with a very basic config and gradually migrating towards the structure. I've added it to my plans. No idea on time frame for release though. I have some other content planned sooner but knowing that there is demand for something specific is excellent feedback for me. Glad you're enjoying my work and thank you for the encouraging support.
@TheWildHustle
@TheWildHustle 3 ай бұрын
posting this on stacker news!
@TheWildHustle
@TheWildHustle 2 ай бұрын
Ha! just saw the Nyx from Dota2
@marcuswest4572
@marcuswest4572 2 ай бұрын
Top top quality. A larger presentation would be easier
@Emergent_Mind
@Emergent_Mind 2 ай бұрын
Thank you for the feedback! I've just released a new set of NixOS videos and increased terminal size significantly. Let me know if that is enough of an improvement for you.
@marcuswest4572
@marcuswest4572 2 ай бұрын
@@Emergent_Mind It's much better yes
@peterkois4858
@peterkois4858 2 ай бұрын
Thank you for thisnusefull information! Please use zoom/larger fonts when typing commands or showing files, I would like to see and read the text from 3m from sofa 😋
@Emergent_Mind
@Emergent_Mind 2 ай бұрын
Thank you for the feedback! I've just released a new set of NixOS videos and increased terminal size significantly. Let me know if that is enough of an improvement for you.
@Majiy00
@Majiy00 2 ай бұрын
Great video, subscribed! I recently migrated from my misterio based config to using snowfall-lib. Have you seen snowfall-lib, do you have any thoughts? I loved how much it reduced the boilerplate in my flake.
@Emergent_Mind
@Emergent_Mind 2 ай бұрын
Hi I had a look at snowfall-lib after reading your comment. Looks like an interesting project that I'll have to do some more exploration into. My primary hesitation with libraries like that is that it can be difficult to understand what they're doing under the hood. That's just my personal preference of course and may not be the case with snowfall, but I'll have a deeper look.
@Majiy00
@Majiy00 2 ай бұрын
@@Emergent_Mind No I think its a very fair point! Its all about trade-offs. There is also an issue about maintenance etc etc.
@CristianHeredia0
@CristianHeredia0 Ай бұрын
Nice, what did you use to generate the diagrams?
@Emergent_Mind
@Emergent_Mind Ай бұрын
Thanks for watching. The diagrams are all done in draw.io for the time being.
@adjbutler
@adjbutler 2 ай бұрын
nix nix nix!
@eygs493
@eygs493 8 күн бұрын
tix! tix! tix!
@willedwards1027
@willedwards1027 2 ай бұрын
Are you Brent from Linux Unplugged/Jupiter Broadcasting? I swear you sound just like him.
@Emergent_Mind
@Emergent_Mind 2 ай бұрын
Not me, but thanks for asking :)
@james-cucumber
@james-cucumber Ай бұрын
Friendly reminder to always have a human manually check AI subtitling. Not wanting to do that is perfectly reasonable, but generating subtitles and not checking them means they’re currently roughly on par with what KZfaq autogenerates, and in future will be worse than what KZfaq autogenerates.
@Emergent_Mind
@Emergent_Mind Ай бұрын
Thanks for pointing this out! I have started to edit the captions for existing videos and will include it as a step when posting future videos.
Anatomy of a NixOS Config - Part 2/2
10:43
EmergentMind
Рет қаралды 428
NixOS Automated Remote Bootstrapping with Secrets - Part 1
9:41
2000000❤️⚽️#shorts #thankyou
00:20
あしざるFC
Рет қаралды 13 МЛН
MOM TURNED THE NOODLES PINK😱
00:31
JULI_PROETO
Рет қаралды 35 МЛН
ТАМАЕВ vs ВЕНГАЛБИ. Самая Быстрая BMW M5 vs CLS 63
1:15:39
Асхаб Тамаев
Рет қаралды 2,9 МЛН
Become a shell wizard in ~12 mins
12:25
CODE IS EVERYTHING
Рет қаралды 216 М.
NixOS Secrets Management - Part 1/3
12:40
EmergentMind
Рет қаралды 4,9 М.
Use Blender in the Terminal in less than 5 minutes
4:33
Spencer Magnusson
Рет қаралды 351
The ULTIMATE guide to Nixpkgs
7:43
IogaMaster
Рет қаралды 1,9 М.
Hollow Knight Has Been Recreated in Minecraft
17:27
fireb0rn
Рет қаралды 73 М.
Matthew Croughan - Use flake.nix, not Dockerfile - MCH2022
17:25
Matthew Croughan
Рет қаралды 43 М.
NixOS for gaming challenge! I am hyped but...
24:32
A1RM4X
Рет қаралды 2,8 М.
NixOS Secrets Management - Part 2/3
10:10
EmergentMind
Рет қаралды 1,9 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 905 М.
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30
iPhone 15 Unboxing Paper diy
0:57
Cute Fay
Рет қаралды 3,3 МЛН
TOP-18 ФИШЕК iOS 18
17:09
Wylsacom
Рет қаралды 524 М.
Интереснее чем Apple Store - шоурум BigGeek
0:42
Выложил СВОЙ АЙФОН НА АВИТО #shorts
0:42
Дмитрий Левандовский
Рет қаралды 2,1 МЛН