xavier d07661561b refactor: move host-specific settings to hosts directory
- Move defaultNameServers from network/dns.nix to hosts/servers/default.nix and hosts/workstations/default.nix
- Move SMTP configuration from network/smtp.nix to hosts/servers/default.nix and hosts/workstations/default.nix
- Move proxy configuration from network/proxy.nix to hosts/servers/default.nix and hosts/workstations/default.nix
- Move NTP servers from network/time.nix to hosts/default.nix
- Remove network/proxy.nix and network/smtp.nix (host-specific settings don't belong in network/)
- Update network/default.nix to only import dns.nix and time.nix

This refactoring separates environment-specific network parameters (domain, timezone)
from host-specific settings (DNS servers, SMTP, proxy, NTP servers), making the
configuration more logical and maintainable.
2026-05-11 14:46:33 +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%