blob: 894f05eb2c8bc7e1f54df48bb976acaf311a097e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{ pkgs ? import <nixpkgs> { }
, system ? builtins.currentSystem
, stateVersion ? pkgs.lib.version
, ...
}:
let
inherit (pkgs) lib;
nixos = pkgs.nixos ({ lib, pkgs, config, ... }: {
nixpkgs.hostPlatform = system;
system.stateVersion = lib.versions.majorMinor stateVersion;
});
doc = pkgs.nixosOptionsDoc {
inherit (nixos) options;
};
in
doc.optionsJSON
|