feat: Add templates for external configs

This commit is contained in:
UGA Innovation Factory
2025-12-16 16:09:08 -05:00
committed by Hunter Halloran
parent f658a4a5cc
commit 11edaada84
17 changed files with 1102 additions and 23 deletions

View File

@@ -305,7 +305,19 @@ The external flake must provide a `nixosModules.default` output. See [System Fla
## External Flake Templates
If you're creating a flake to use with `flakeUrl`, use these templates as starting points.
If you're creating a flake to use with `flakeUrl`, you can use the provided templates as starting points.
### Quick Start with Templates
Initialize a new configuration from templates:
```bash
# User configuration template (for users.nix)
nix flake init -t github:UGA-Innovation-Factory/nixos-systems#user
# System configuration template (for inventory.nix)
nix flake init -t github:UGA-Innovation-Factory/nixos-systems#system
```
**Important:** Do not specify `inputs` in your flake. This ensures your flake uses the exact same `nixpkgs` version as the main system, preventing version drift and saving disk space.