wiki/_next/data/Ie9t5zutrXP6Of75Cb5xF/cli.niv.json
2022-07-29 15:41:17 +00:00

1 line
3.0 KiB
JSON

{"pageProps":{"metadata":{"date":"\"2021-05-09 17:25:04 +08:00\"","date_modified":"\"2021-06-19 17:43:28 +08:00\"","language":"en","source":""},"title":"Command line: Niv","hast":{"type":"root","children":[{"type":"element","tagName":"nav","properties":{"className":"toc"},"children":[{"type":"element","tagName":"ol","properties":{"className":"toc-level toc-level-1"},"children":[]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"niv is a template generator for a quick start of creating a Nix environment with full reproducibility.\nIt allows for a quick configuration of where to pin certain package sets (e.g., nixpkgs, NUR, your own package set) with a command line program.\n"}]},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"code","properties":{"className":["inline-code"]},"children":[{"type":"text","value":"niv init"}]}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Configuring your pins with "},{"type":"element","tagName":"code","properties":{"className":["inline-code"]},"children":[{"type":"text","value":"niv show $SOURCE"}]},{"type":"text","value":" and editing "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"nix/sources.json"}]},{"type":"text","value":" generated from "},{"type":"element","tagName":"code","properties":{"className":["inline-code"]},"children":[{"type":"text","value":"niv init"}]},{"type":"text","value":".\n"}]}]},{"type":"element","tagName":"li","properties":{},"children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Using it by importing from your Nix files (e.g., "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"default.nix"}]},{"type":"text","value":", "},{"type":"element","tagName":"code","properties":{"className":["inline-verbatim"]},"children":[{"type":"text","value":"shell.nix"}]},{"type":"text","value":").\n"}]}]}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can also update the pins with "},{"type":"element","tagName":"code","properties":{"className":["inline-code"]},"children":[{"type":"text","value":"niv update $SOURCE"}]},{"type":"text","value":" and you don't have to manually look into the repo for updating the pins.\nThough, Nix flakes are still the more attractive options IMO.\n"}]},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If you're looking to update the official channels, you can take a peek at "},{"type":"element","tagName":"a","properties":{"href":"https://status.nixos.org/"},"children":[{"type":"text","value":"status.nixos.org"}]},{"type":"text","value":".\n"}]}]},"backlinks":[]},"__N_SSG":true}