feat: flake wrapper exposing modules, hardware, lib, overlay#1
Open
abstracts33d wants to merge 4 commits into
Open
feat: flake wrapper exposing modules, hardware, lib, overlay#1abstracts33d wants to merge 4 commits into
abstracts33d wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a thin `flake.nix` wrapper at the repo root so external Nix flake consumers can import Sécurix's modules, hardware profiles, lib, and pkgs overlay without depending on npins. The existing `default.nix` (npins-based) remains the primary build path; the flake re-uses it via `sources = inputs // (import ./npins)` so flake inputs override npins where present and npins remains the fallback for any source the flake doesn't provide (e.g. `git-hooks`).
Outputs exposed
Why
Pilot integration with NixFleet — a NixOS fleet management framework — to evaluate running Sécurix endpoints under a unified `mkHost` API alongside server-class hosts in the same fleet. The flake wrapper is the minimum-friction entrypoint; nothing in the existing build paths changes.
Files
No changes to `default.nix`, `lib/`, `modules/`, `hardware/`, `pkgs/`, or `npins/`.
How to test
External consumer smoke (pilot context)
Tested by importing `securix-base` from a downstream flake and evaluating a minimal NixOS configuration to a derivation. Several upstream surface bugs were surfaced during this test — none caused by this PR, but worth noting for separate fixes:
Happy to open separate PRs for any of these if useful.
Status
Alpha — matches the project's overall alpha posture. This wrapper is purely additive and should not affect existing users.