nixpkgs/nixos/lib
Robert Hensing d916df7775 nixos/make-options-doc: Remove now redundant fixup
This fixes a problem where most NixOS option declaration paths started
with `nixos/modules/nixos/modules/`, which should have been only
just `nixos/modules/`.

Since dcc0ee9ea1, we use a source path
that includes both the `modules` and `nixos/modules`, so we don't need
to additionally prefix `nixos/modules` anymore.

Manually checked with

    nix-build nixos/release.nix -A options
    jq < result/share/doc/nixos/options.json '[ ."_module.args".declarations, ."meta.maintainers".declarations, ."nixpkgs.system".declarations, ."zramSwap.swapDevices".declarations ]'

Samples:

- `_module` for options defined in `lib/`
- `meta.maintainers` for options defined in `modules/`
- `nixpkgs.system` for options defined in `nixos/` with `meta.buildDocsInSandbox = false;`
- `zramSwap.swapDevices` for regular `nixos/` without that

I'm a big fan of automated tests, but in this case I am not doing that because
- the solution is a simplification, and
- no obvious place for the test, and it would couple with unrelated
  downstream code more than I would like.
2025-09-14 16:15:09 +02:00
..
make-options-doc nixos/make-options-doc: Remove now redundant fixup 2025-09-14 16:15:09 +02:00
test-driver nixos/test-driver: Add machine.get_console_log() 2025-09-12 16:46:03 +02:00
testing Merge branch 'master' into staging-next 2025-07-24 14:27:50 +02:00
default.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
eval-cacheable-options.nix nixos/documentation: Allow the inclusion of a nixpkgs/modules directory 2025-08-06 14:58:50 +02:00
eval-config-minimal.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
eval-config.nix nixos/eval-config: Remove NIXOS_EXTRA_MODULE_PATH 2025-09-08 11:02:43 +08:00
from-env.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
make-btrfs-fs.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
make-channel.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
make-disk-image.nix treewide: specify that mebibytes are used when it's ambiguous (#424169) 2025-07-11 12:29:33 -07:00
make-ext4-fs.nix treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
make-iso9660-image.nix make-{iso9660-image,squashfs,system-tarball}: drop references to build closure (#425700) 2025-08-21 12:14:26 +02:00
make-iso9660-image.sh
make-multi-disk-zfs-image.nix treewide: specify where mebibytes are used when it's ambiguous 2025-07-11 00:44:23 +03:00
make-single-disk-zfs-image.nix treewide: specify where mebibytes are used when it's ambiguous 2025-07-11 00:44:23 +03:00
make-squashfs.nix make-{iso9660-image,squashfs,system-tarball}: drop references to build closure (#425700) 2025-08-21 12:14:26 +02:00
make-system-tarball.nix make-system-tarball: drop references to build closure 2025-07-16 15:31:33 +10:00
make-system-tarball.sh make-system-tarball: use __structuredAttrs 2025-07-16 15:29:05 +10:00
qemu-common.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
systemd-lib.nix nixos/systemd: drop kbrequest.target symlink 2025-08-12 22:50:39 +02:00
systemd-network-units.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
systemd-types.nix treewide: Fix links in module documentation 2025-08-25 12:55:11 -04:00
systemd-unit-options.nix nixos/unitOption: remove unnecessary definition filtering 2025-05-30 22:39:51 +02:00
test-script-prepend.py test-driver: Implement debugging breakpoint hooks 2025-07-18 17:39:01 +02:00
testing-python.nix nixos/test-driver: printout instructions on how to connect via AF_VSOCK 2025-05-08 10:51:39 +02:00
utils.nix recursiveGetAttrsetWithJqPrefix: fix top level values 2025-08-16 23:25:45 +08:00