A NixOS module for convenient system hardening by securely configuring existing software and reducing attack surface.
nix-mineral is a NixOS module that provides convenient system hardening for Linux systems running NixOS. It reduces attack surface by securely configuring existing software through filesystem hardening, kernel hardening, network hardening, and extensive kernel module blacklisting. The module serves as a drop-in addition to any NixOS system, making security improvements more accessible.
NixOS users and system administrators who want to enhance their system security without switching to dedicated security-focused operating systems. It's particularly useful for those running nixos-unstable who want practical hardening measures.
Developers choose nix-mineral because it provides comprehensive security hardening as a convenient NixOS module that can be easily integrated into existing systems. Unlike complete security-focused operating systems, it offers practical improvements while maintaining compatibility with standard NixOS workflows and configurations.
Conveniently and reasonably harden NixOS.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Implements filesystem, kernel, network, and entropy hardening with extensive sysctl settings and kernel module blacklists, derived from established security guides like Madaidans-insecurities and Kicksecure.
Serves as a drop-in module that can be added to any NixOS configuration via imports, enabling security improvements without complete system overhauls, as highlighted in the documentation.
Offers compatibility presets to ease adoption and focuses on practical improvements within existing constraints, acknowledging it's 'better than nothing' for real-world use.
Credits contributors and references multiple security projects (e.g., GrapheneOS, nix-bitcoin), ensuring the configuration borrows from experienced and tested sources.
Explicitly warns of potential data loss and functionality issues, especially on non-fixed releases, requiring user debugging cooperation and making it risky for untested environments.
Primarily targets nixos-unstable, leading to incompatibilities with stable releases and necessitating manual overrides for renamed options, as stated in the scope documentation.
Requires fine-tuning of options for individual hardware and software, as presets may not cover all cases, adding complexity to setup despite the drop-in promise.