all repos — searchix @ 1fb64b09e2dba34784732a61cbebc119cd847803

Search engine for NixOS, nix-darwin, home-manager and NUR users

importers/nixos-options.nix (view raw)

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