nixpkgs/nixos/doc/manual/development
Jeremy Fleischman 6d7f6a92cc
lib/types: add types.pathWith
This gives people some flexibility when they need a path type, and
prevents a "combinatorial explosion" of various path stops.

I've re-implemented our existing `path` and `pathInStore` types using
`pathWith`. Our existing `package` type is potentially a candidate for
similar treatment, but it's a little quirkier (there's some stuff with
`builtins.hasContext` and `toDerivation` that I don't completely
understand), and I didn't want to muddy this PR with that.

As a happy side effect of this work, we get a new feature: the ability
to create a type for paths *not* in the store. This is useful for when a
module needs a path to a file, and wants to protect people from
accidentally leaking that file into the nix store.
2025-02-15 16:14:06 +07:00
..
activation-script.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
assertions.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
bootspec.chapter.md nixos/activation/bootspec: fix style 2024-06-05 11:14:36 +08:00
building-parts.chapter.md
developing-the-test-driver.chapter.md
development.md
etc-overlay.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
freeform-modules.section.md
importing-modules.section.md nixos/eval-config: Deprecate NIXOS_EXTRA_MODULE_PATH 2024-10-18 17:04:35 +02:00
linking-nixos-tests-to-packages.section.md
meta-attributes.section.md nixos/eval-config: Deprecate NIXOS_EXTRA_MODULE_PATH 2024-10-18 17:04:35 +02:00
nixos-tests.chapter.md
non-switchable-systems.section.md Revert "NixOS apply script" 2024-11-01 20:18:09 -04:00
option-declarations.section.md doc/manual: replace bad advice about package options and overlays 2025-01-08 12:49:40 -08:00
option-def.section.md treewide: Fix all Nix ASTs in all markdown files 2024-03-28 09:28:12 +01:00
option-types.section.md lib/types: add types.pathWith 2025-02-15 16:14:06 +07:00
replace-modules.section.md Remove top level with lib; in docs (#293829) 2024-03-06 22:35:43 +01:00
running-nixos-tests-interactively.section.md nixos/manual: add hint to interactive testing about Internet access 2024-08-31 14:40:14 +00:00
running-nixos-tests.section.md nixos/doc/running-nixos-tests: Describe system requirements 2024-03-05 20:51:10 +01:00
settings-options.section.md pkgs-lib.formats.xml: init 2025-01-13 21:56:22 +01:00
sources.chapter.md
testing-installer.chapter.md treewide: use pkgs.nixos-enter instead of config.system.build.nixos-enter 2024-09-21 16:13:36 +03:00
unit-handling.section.md Document the logic around X-NotSocketActivated in the manual 2024-12-09 08:57:47 -05:00
what-happens-during-a-system-switch.chapter.md Revert "NixOS apply script" 2024-11-01 20:18:09 -04:00
writing-documentation.chapter.md doc: Update manuals bespoke syntax 2024-01-25 16:33:35 +01:00
writing-modules.chapter.md nixos/doc: Split mkdir mode into chmod command for clarity (#236740) 2024-11-01 11:09:52 +08:00
writing-nixos-tests.section.md nixos documentation: Suggest pkgs.testers.runNixOSTest 2024-10-28 09:36:39 +01:00