nixpkgs/nixos/doc/manual
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
..
administration Revert "NixOS apply script" 2024-11-01 20:18:09 -04:00
configuration manual: add mattermost.chapter.md 2025-01-20 08:07:45 +01:00
development lib/types: add types.pathWith 2025-02-15 16:14:06 +07:00
installation manual: add nixos-rebuild build-image section 2024-12-16 00:41:54 +01:00
release-notes prometheus-node-cert-exporter: init at 1.1.7 (#368325) 2025-02-12 12:34:24 -08:00
common.nix
contributing-to-this-manual.chapter.md nixos-render-docs: init redirects system 2024-11-15 14:09:21 +01:00
default.nix doc: titanium tombstone 2025-01-02 15:05:26 +01:00
manual.md
nixos-options.md
preface.md
README.md
redirects.json nexusmods-app: add release-note for resetting before upgrading 2025-02-08 20:36:12 +00:00
shell.nix docs: fix devmode for manuals 2025-01-24 18:05:03 +01:00