nix.dev
nix.dev copied to clipboard
reuse `devmode` utility from nixos/nixpkgs manuals
While figuring out the best name to export the nixos/nixpkgs manuals utility for out-of-tree usage, the contents of https://github.com/NixOS/nixpkgs/blob/8f6ee3a6da7025c06936fdfbdfb7ba423c3ce5d5/pkgs/tools/nix/web-devmode.nix are pasted into the overlay.
Closes #787.
Deploy Preview
Name | Result |
---|---|
Last commit: |
90ef6459aff07cd8d7e3e6e3e74968ffb10bb2dc
|
Preview URL: | https://f777e78a.nix-dot-dev.pages.dev |
If https://github.com/NixOS/nixpkgs/pull/265259 gets merged, we could pull it directly from the future 23.11 release.
See https://github.com/NixOS/nixpkgs/pull/265259#issuecomment-1799028711, we can use callPackage
to avoid the duplication.
Discussed in the docs meeting:
- Put into draft mode until it's fixed up.
- Would be good to have a note why this is better than the Python live reload thing that's already there.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/2023-11-30-documentation-team-meeting-notes-97/36271/1