How to Start Adding Modularity to your NixOS Config
LibrePhoenix
@librephoenixAbout
I'm a FOSS/Linux enthusiast and content creator. I mainly focus on NixOS, Emacs, Vim and nerdy terminal stuff. Stick around for tech tutorials, discussions and more!
Latest Posts
Video Description
Join as a Channel Member: https://www.youtube.com/channel/UCeZyoDTk0J-UPhd7MUktexw/join Join Liberapay: https://liberapay.com/LibrePhoenix/donate Join Patreon: https://www.patreon.com/LibrePhoenix This video will give you a few tricks you can use to make your configuration more modular. In specific we talk about separating your NixOS config into multiple files (modules) and selectively importing them using the imports list in your configuration.nix and/or home.nix. Associated Blog Post: https://librephoenix.com/2023-12-03-making-your-nixos-config-more-modular Links referenced: Nix Language Basics (nix.dev): https://nix.dev/tutorials/nix-language MyNixOS: https://mynixos.com/ My configuration (if you're curious): GitHub: https://github.com/librephoenix/nixos-config GitLab: https://gitlab.com/librephoenix/nixos-config Codeberg: https://codeberg.org/librephoenix/nixos-config Wallpaper backgrounds were found on freepik.com.
You May Also Like
Essential NixOS Modularity Gear
AI-recommended products based on this video

100W 90W USB-C Charger Type-C Adapter for Lenovo Thinkpad Carbon x1 5th 6th Gen, IdeaPad 13" 720 Y400 Y500 P580 P500, Yoga 370 X280 X390 910 920 Power Cord GX20M33579 4X20M26268

65W USB C Laptop Charger for Lenovo Thinkpad X1 Carbon T470 T480 T490 T590 E580 E590 E595 Yoga IdeaPad Chromebook Power Supply Adapter Cord 20V 3.25A

45W 65W Laptop Charger for Lenovo Thinkpad X1 Carbon T460 T470 T470S T440 T540 X260 X240 X270 G40 G50 G50-80 E560 E450, Yoga 2 11/2 Pro/ 11s 13 Flex 2 2-15 Ideapad 300 500 700 Power Supply Cord

65W USB C for Lenovo Laptop Charger for Lenovo Thinkpad/Chromebook/Ideapad/Yoga Series-USB C Laptop Charger for Lenovo T14 Thinkpad T480 T490 Yoga 7i 9i Thinkpad X1 Carbon

Laptop Sleeve Case 11–14 Inch MacBook Air MacBook Pro Surface Laptop Dell XPS 13 HP Envy Pavilion Lenovo Yoga Slim IdeaPad Acer Swift Chromebook Samsung Galaxy Book Shockproof Leather Bag Colour Blue

Gumdrop ProTech Case for Dell New XPS 13 Plus 9320 Laptop- Slim Lightweight Case with Energy Displacement Protection, Non-Skid Rubber Feet and Frosted Exterior for Bumps and Drops (Black)

65W 45W USB C Laptop Charger Compatible with Dell Latitude 5420 5430 5520 5530 7340 7430 Inspiron 14 16 XPS 13 Chromebook 3100 Dell Computer Type C Fast Charging AC Adapter Power Cord

45W 65W AC Adapter Laptop Charger for Dell Inspiron 15 14 13 17 3000 5000 7000 Series 5558 5559 Charger Latitude E6440 E6430 3520 3420 XPS 13 14 9333 9350 Notebook Dell Computer Power Supply Cord

Anker 332 USB-C Hub (5-in-1) with 4K HDMI Display, 5Gbps - and 2 5Gbps USB-A Data Ports and for MacBook Pro, MacBook Air, Dell XPS, Lenovo Thinkpad, HP Laptops and More

Lenovo USA ThinkPad Thunderbolt 3 Dock Gen 2 135W (40AN0135US) Dual UHD 4K Display Capability, 2 HDMI, 2 DP, USB-C, USB 3.1, Black

135W Power Adapter Cord for Lenovo ThinkPad Universal Thunderbolt 4 3 Dock/USB C Smart Dock/Thunderbolt 3 Essential Gen 1 2/ThinkPad Hybrid USB-C with USB-A/Ultra/Pro/Gen 2

Dell UltraSharp U2723QE 27" 4K UHD WLED LCD Monitor - 16:9 - Black, Silver EPEAT

TP-Link AC1300 USB WiFi Adapter (Archer T3U) - 2.4G/5G Dual Band Wireless Network Adapter for PC Desktop, MU-MIMO WiFi Dongle, USB 3.0, Supports Windows 11/10/8.1/8/7/XP, Mac OS 10.9-10.14

TP-Link WiFi 6 AX3000 PCIe WiFi Card Archer TX55E - Bluetooth 5.2, 802.11AX Dual Band Wireless Adapter with MU-MIMO, OFDMA, Ultra-Low Latency, Supports Windows 11, 10 (64bit) only

TP-Link AC1300 High Gain WiFi USB Adapter (Archer T4U)- Dual Band Wireless Network Adapter for Desktop with 2.4GHz/5GHz High Gain Antennas, MU-MIMO, Support Windows 10/8.1/8/7/XP, Mac OS

TP-Link Mini - AC600 USB 2.0 Wifi Adapter (Archer T2U Nano) - 2.4G/5G Dual Band Wireless Network Adapter for PC Desktop, Mini Travel Size, Supports Windows 11/10/8.1/8/7/XP, Mac OS 10.9-10.15

Beelink Mini PC, Intel 12th Gen Alder Lake- N100(up to 3.4GHz), 16GB DDR4 RAM 500GB M.2 SSD, Mini S12 Desktop Computers, USB3.2/WiFi 5/BT4.2 for Home/Office

Beelink Mini S13 Mini PC,Intel 13th Twin Lake N150(Upgraded N100, 4C/4T),Mini Computer 16GB RAM 500GB M.2 SSD, W-11 Pro Gigabit Ethernet, 4K UHD, WiFi6, BT5.2 Home/Business Mini Desktop Computer

OUMAX N150 Dual LAN Mini PC, Intel 13th Gen Twin Lake N150 (Up to 3.6GHz), 16GB DDR4 500GB M.2 SSD, Mini Computer Support 4K Dual HDMI, WiFi5/BT5.0/USB3.2, Built-in 45W Power Supply Office Desktop PC

Corsair Vengeance LPX 32GB (2 X 16GB) DDR4 3200 (PC4-25600) C16 1.35V Desktop Memory - Black

Logitech M185 Wireless Mouse, 2.4GHz with USB Mini Receiver, 12-Month Battery Life, 1000 DPI Optical Tracking, Ambidextrous, Compatible with PC, Mac, Laptop - Black

Logitech G305 Lightspeed Wireless Gaming Mouse, Hero 12K Sensor, 12,000 DPI, Lightweight, 6 Programmable Buttons, 250h Battery Life, On-Board Memory, PC/Mac - Black

Logitech K400 Plus Wireless Touch TV Keyboard With Easy Media Control and Built-in Touchpad, HTPC Keyboard for PC-connected TV, Windows, Android, Chrome OS, Laptop, Tablet - Black

Logitech G203 Wired Gaming Mouse, 8,000 DPI, Rainbow Optical Effect LIGHTSYNC RGB, 6 Programmable Buttons, On-Board Memory, Screen Mapping, PC/Mac Computer and Laptop Compatible - Black

CHARM FOCUS Stereo Headset Adapter, Audio Mic Headphone Adapter for Xbox One, Xbox Series X|S and Elite Controller, Adjust Audio Balance (Game Sound & Voice Chat), Not Bluetooth Compatible

Monster Mission 200 Bluetooth Headphones, Wireless Headphones with 3 EQ Modes, Low Latency HiFi Stereo Foldable Lightweight Headset, 60H Playtime,Deep Bass for Home Office Cellphone PC Ect(White)








