1 # Experimental flake interface to Nixpkgs.
2 # See https://github.com/NixOS/rfcs/pull/49 for details.
4 description = "A collection of packages for the Nix package manager";
8 jobs = import ./pkgs/top-level/release.nix {
14 forAllSystems = f: lib.genAttrs lib.systems.flakeExposed (system: f system);
18 lib = lib.extend (final: prev: {
20 nixos = import ./nixos/lib { lib = final; };
23 import ./nixos/lib/eval-config.nix (args // {
24 modules = args.modules ++ [ {
25 system.nixos.versionSuffix =
26 ".${final.substring 0 8 (self.lastModifiedDate or self.lastModified or "19700101")}.${self.shortRev or "dirty"}";
27 system.nixos.revision = final.mkIf (self ? rev) self.rev;
32 checks.x86_64-linux.tarball = jobs.tarball;
35 nixpkgsManual = jobs.manual;
36 nixosManual = (import ./nixos/release-small.nix {
38 }).nixos.manual.x86_64-linux;
41 legacyPackages = forAllSystems (system: import ./. { inherit system; });
44 notDetected = import ./nixos/modules/installer/scan/not-detected.nix;