xavier 8e22e05d2b feat: update sample environment to match nixos-infra structure
- Add network/dns.nix, network/time.nix, network/proxy.nix, network/smtp.nix
- Add network/default.nix to import all network files
- Add hosts/default.nix, hosts/servers/default.nix, hosts/workstations/default.nix
- These placeholders match the structure in nixos-infra for consistency

The sample environment now reflects the same organization as production,
dev, and stage environments, making it easier to use as a reference.
2026-05-11 12:11:15 +02:00

NixOS Infrastructure Framework

Reusable, environment-agnostic components for building and managing NixOS-based infrastructure.

Contents

Directory Purpose
modules/ NixOS modules (machine types, services, users)
lib/ Nix utility functions
pkgs/ Custom packages not in Nixpkgs
overlays/ Nixpkgs overlays
scripts/ Operational scripts (deploy, create LXC, etc.)
environments/ Example environments to get started

Getting Started

  1. Clone this repository.
  2. Create your own environment directory (see environments/sample/).
  3. Reference framework modules via relative paths or fetchGit.
  4. Add your host configurations, network layout, and secrets.

Creating Your Own Environment

environments/your-env/
├── configuration.nix     # Environment entry point
├── hosts/
│   ├── servers/
│   │   └── myhost/
│   │       └── configuration.nix
│   └── workstations/
├── network/              # Subnets, VLANs, host assignments
├── secrets/              # agenix-encrypted secrets
└── users/                # User configurations

License

See LICENSE.

S
Description
Reusable NixOS infrastructure framework — modules, lib, pkgs, overlays, scripts
Readme 65 KiB
Languages
Nix 56.6%
Shell 43.4%