diff options
| author | Robert Hensing <robert@roberthensing.nl> | 2025-06-02 13:08:36 +0200 |
|---|---|---|
| committer | Robert Hensing <robert@roberthensing.nl> | 2025-06-02 13:08:36 +0200 |
| commit | 3e39647ac1100b93dfebbdca570fccb4d1847913 (patch) | |
| tree | 790e76eca824bd5e557a722f2210fd0c20cf93ca | |
| parent | k3s.tests: fix eval (#412756) (diff) | |
| download | nixpkgs-origin/flake-libs.tar.gz | |
flake: Add libsorigin/flake-libs
| -rw-r--r-- | flake.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix index 3bd0a48a5cce..129bc5963840 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,24 @@ in { /** + The Nixpkgs repository/flake houses multiple components that provide functions. + + These include the Nixpkgs `lib` library, with a larger number of functions for various purposes, as well as the `nixpkgs` (TBD) and `nixos` libraries whose main purpose is to provide configurability for those respective components. + */ + # This attribute set is intentionally not extensible. Its purpose is not dependency injection. + libs = { + /** + [The Nixpkgs library](https://nixos.org/manual/nixpkgs/unstable/#id-1.4) + */ + lib = import ./lib; + + /** + Entrypoints into [NixOS](https://nixos.org/manual/nixos/unstable/), including [`runTest`](https://nixos.org/manual/nixos/unstable/#sec-call-nixos-test-outside-nixos). + */ + nixos = import ./nixos/lib { }; + }; + + /** `nixpkgs.lib` is a combination of the [Nixpkgs library](https://nixos.org/manual/nixpkgs/unstable/#id-1.4), and other attributes that are _not_ part of the Nixpkgs library, but part of the Nixpkgs flake: |
