aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-03-23showSetting: Drop ...Eelco Dolstra
2023-03-23Make useAnchors a named argumentEelco Dolstra
2023-03-23Fix SSHStoreEelco Dolstra
2023-03-23Merge pull request #8095 from fricklerhandwerk/operators-formattingEelco Dolstra
doc: force line breaks where needed
2023-03-23Fix clang buildEelco Dolstra
2023-03-22Merge pull request #8078 from obsidiansystems/profile-mdJohn Ericson
Fix `nix profile --help`
2023-03-23Merge pull request #6865 from zuzuleinen/manual-nix-path-emptyValentin Gagarin
document what happens when NIX_PATH is empty
2023-03-22add linksValentin Gagarin
2023-03-22doc: force line breaks where neededValentin Gagarin
2023-03-22docker.nix: add an option to include flake-registry inside docker image (#6750)Alex Wied
Co-authored-by: Alex Wied <centromere@users.noreply.github.com> Co-authored-by: Rok Garbas <rok@floxdev.com>
2023-03-22Improve store setting descriptions / Markdown formattingEelco Dolstra
2023-03-22nix help-stores: Don't include anchorsEelco Dolstra
Since setting names are not unique we don't have an easy way to produce unique anchors.
2023-03-22Merge pull request #8082 from edolstra/add-linksEelco Dolstra
Add links to API docs / coverage analysis to the hacking section
2023-03-22Add a test for nix copy over sshAlexander Bantyev
Check that nix copy can copy stuff, refuses to copy unsigned paths by default, and doesn't hide the ssh password prompt.
2023-03-22SSHMaster: pause logger to show password promptAlexander Bantyev
Pause logger before starting SSH connections, and resume it after the connection is established, so that SSH password prompts are not erased by the logger's updates.
2023-03-22Logger, ProgressBar: add a way to pause/resumeAlexander Bantyev
Add new virtual methods pause and resume to the Logger class, and implement them in ProgressBar to allow to pause the bar refreshing.
2023-03-21Merge pull request #8085 from edolstra/fetchGit-mdEelco Dolstra
Fix rendering of fetchGit documentation
2023-03-21Fix rendering of fetchGit documentationEelco Dolstra
stripIndentation() doesn't support tabs, so the entire markdown ended up indented and thus rendered as a code block.
2023-03-21Add a "help" categoryEelco Dolstra
This makes the help commands show up prominently at the top of the 'nix' manpage.
2023-03-21Move store docs to 'nix help-stores'Eelco Dolstra
Why not 'nix help stores'? Well, 'nix help <arg>' already means 'show help on the "arg" subcommand'.
2023-03-21FormattingEelco Dolstra
2023-03-21Support per-store Markdown documentationEelco Dolstra
2023-03-21nix describe-stores: RemoveEelco Dolstra
This command was intended for docs generation, but it was never used for that and we don't need it.
2023-03-21nix store --help: Include store type documentationEelco Dolstra
2023-03-21Merge pull request #8083 from edolstra/fix-nix-store-renderingEelco Dolstra
Fix misrendering of 'nix store --help'
2023-03-21generate-manpage.nix: Make more readableEelco Dolstra
2023-03-21Fix misrendering of 'nix store --help'Eelco Dolstra
There are no categories underneath 'nix store', so having 'nix store copy-log' in a category rendered as ':'.
2023-03-21Add links to API docs / coverage analysis to the hacking sectionEelco Dolstra
2023-03-20Merge pull request #8077 from edolstra/pts-hangEelco Dolstra
Open slave pseudoterminal before CLONE_NEWUSER
2023-03-20Fix `nix profile --help`John Ericson
The documentation hadn't be updated to reflect the new default profile location.
2023-03-20CleanupEelco Dolstra
2023-03-20Open slave pseudoterminal before CLONE_NEWUSEREelco Dolstra
Otherwise, when running as root and user namespaces are enabled, opening the slave fails with EPERM. Fixes "opening pseudoterminal slave: Permission denied" followed by a hang (https://hydra.nixos.org/build/213104244), and "error: getting sandbox mount namespace: No such file or directory" (#8072), which happens when the child fails very quickly and consequently reading /proc/<child>/ns fails.
2023-03-20Fix handling of experimental features mid-parseJohn Ericson
If we conditionally "declare" the argument, as we did before, based upon weather the feature is enabled, commands like nix --experimental-features=foo ... --thing-gated-on-foo won't work, because the experimental feature isn't enabled until *after* we start parsing. Instead, allow arguments to also be associated with experimental features (just as we did for builtins and settings), and then the command line parser will filter out the experimental ones. Since the effects of arguments (handler functions) are performed right away, we get the required behavior: earlier arguments can enable later arguments enabled! There is just one catch: we want to keep non-positional flags...non-positional. So if nix --experimental-features=foo ... --thing-gated-on-foo works, then nix --thing-gated-on-foo --experimental-features=foo ... should also work. This is not my favorite long-term solution, but for now this is implemented by delaying the requirement of needed experimental features until *after* all the arguments have been parsed.
2023-03-20Mark experimental features on settingsJohn Ericson
We hide them in various ways if the experimental feature isn't enabled. To do this, we had to move the experimental features list out of libnixstore, because the setting machinary itself depends on it. To do that, we made a new `ExperimentalFeatureSettings`.
2023-03-20Move enabled experimental feature to libutil structJohn Ericson
This is needed in subsequent commits to allow the settings and CLI args infrastructure itself to read this setting.
2023-03-20Write test, will fail until rest of PRJohn Ericson
2023-03-20Merge pull request #8075 from edolstra/api-docsEelco Dolstra
Fix internal-api rendering in Hydra
2023-03-20Fix internal-api rendering in HydraEelco Dolstra
Currently it gives a 500 error with "Do not know how to serve path '/nix/store/bym5sm8z2wpavnvzancb9gjdlgyzs1l8-nix-internal-api-docs-2.15.0pre20230320_e37f436/share/doc/nix/internal-api'."
2023-03-20Merge pull request #7968 from bobvanderlinden/pr-contributingThéophane Hufschmitt
Add CONTRIBUTING.md
2023-03-20Merge pull request #8070 from figsoda/quoteEelco Dolstra
docs: quote URL literals
2023-03-20Merge pull request #8068 from DieracDelta/jr/compile_darwinEelco Dolstra
Fix build aarch64-darwin for static library
2023-03-19docs: quote URL literalsfigsoda
2023-03-19Create test lockfiles in TEST_ROOTLinus Heckemann
2023-03-19Only allow reference lock files when allow-dirty is setLinus Heckemann
2023-03-19Add tests for alternate lockfile path functionalityLinus Heckemann
2023-03-18fix: build aarch64-darwinJustin Restivo
2023-03-18Merge pull request #8064 from knedlsepp/flake-in-submoduleRobert Hensing
Add a test with flake.nix in a git submodule
2023-03-18tests/flake-in-submodule: Remove unnecessary rm -rfRobert Hensing
2023-03-17Add a test with flake.nix in a submoduleJosef Kemetmüller
I noticed a regression in the lazy-trees branch, which I'm trying to capture with this test. While the tests succeeds in master, the lazy-trees branch gives the following error message: error: access to path '/build/nix-test/tests/flakes/flake-in-submodule/rootRepo/submodule/flake.nix' is forbidden because it is not under Git control; maybe you should 'git add' it to the repository '/build/nix-test/tests/flakes/flake-in-submodule/rootRepo'?
2023-03-17Add a setting for configuring the SSL certificates fileEelco Dolstra
This provides a platform-independent way to configure the SSL certificates file in the Nix daemon. Previously we provided instructions for overriding the environment variable in launchd, but that obviously doesn't work with systemd. Now we can just tell users to add ssl-cert-file = /etc/ssl/my-certificate-bundle.crt to their nix.conf.