Maintinance Guidelines
Documentation: https://tj-coding.github.io/nixos-config/
New here? Read Bag of Materials for what exists, and the playbooks for how to change it.
Directory Structure
π nixos-config/
ββ π hosts/ Contains configuration of physical machines
ββ π templates/ Groups of modules and functions reused by different machines
ββ π modules/ Groups of moudles for use by different templates
ββ π functions/ Smallest component, who serves a specific function
ββ π apps/ Custom Nix Packages and Docker Files who serves a function
Choosing Folder
| Folder | Put it here when⦠| Typical contents |
|---|---|---|
hosts/ | It is specific to a physical machine | Hardware configuration, host-specific settings |
templates/ | It combines reusable configuration for a class of machines | Desktop template, server template, development template |
modules/ | It provides one reusable NixOS feature | SSH, Docker, graphics, users |
functions/ | It is a small reusable building block | Nix functions, helpers, generators |
apps/ | It represents a custom application or package | Custom Nix packages, Docker Compose applications |
Dependency Direction
hosts
β
templates
β
modules
β
functions