Denix is a Nix library designed to help you build scalable configurations for NixOS, Home Manager, and Nix-Darwin.
You can find the documentation here: Denix Documentation
Custom modules allow you to define options and related configurations in a flexible way, simplifying the management of your entire system.
- Hosts: Unique configurations tailored for each machine.
- Rices: Customizations that can be applied to all hosts.
Write your own extensions for the Denix or use existing ones that add new functions and modules.
Write your NixOS, Home Manager, and Nix-Darwin configurations in a single file*, and Denix will automatically handle the separation for you.
minimal (recommended)
Hosts, rices, and initial modules for quick setup:
nix flake init -t github:yunfachi/denix#minimal
Hosts and initial modules without rices:
nix flake init -t github:yunfachi/denix#minimal-no-rices
Flake for creating your own collection of Denix extensions:
nix flake init -t github:yunfachi/denix#extensions-collection