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";
9 jobs = import ./pkgs/top-level/release.nix {
24 forAllSystems = f: lib.genAttrs systems (system: f system);
28 lib = lib.extend (final: prev: {
29 nixosSystem = { modules, ... } @ args:
30 import ./nixos/lib/eval-config.nix (args // {
32 [ { system.nixos.versionSuffix =
33 ".${final.substring 0 8 (self.lastModifiedDate or self.lastModified)}.${self.shortRev or "dirty"}";
34 system.nixos.revision = final.mkIf (self ? rev) self.rev;
40 checks.x86_64-linux.tarball = jobs.tarball;
43 nixpkgsManual = jobs.manual;
44 nixosManual = (import ./nixos/release-small.nix {
46 }).nixos.manual.x86_64-linux;
49 legacyPackages = forAllSystems (system: import ./. { inherit system; });
52 notDetected = import ./nixos/modules/installer/scan/not-detected.nix;