The article discusses a personal approach to organizing Nix configuration files by grouping modules by feature rather than by type (e.g., NixOS vs. home-manager), aiming to improve maintainability and reduce duplication across multiple hosts and operating systems. It critiques the standard directory-based method for being cumbersome when modules need to cooperate, and proposes a unified structure to simplify management. This is a practical guide for intermediate Nix users dealing with multi-platform configurations.
Background
Nix is a declarative package manager and operating system configuration tool that uses modules to manage settings across different environments like NixOS and macOS via home-manager. As users scale their setups to multiple machines and platforms, organizing these modules efficiently becomes a common challenge.
- Source
- Lobsters
- Published
- Mar 20, 2026 at 07:16 PM
- Score
- 5.0 / 10