From NixOS Wiki

This section is dedicated to articles focusing on hardware-related topics. The primary resource for hardware-related NixOS code can be found in a GitHub repository abundant with code snippets: . The repository is organized by device manufacturer and also includes a common directory containing snippets for various hardware components such as CPU, GPU, HDD, and SSD.