aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-08add CODEOWNERSValentin Gagarin
2022-11-08Fix build on macOSEelco Dolstra
2022-11-08Split auto UID allocation from cgroupsEelco Dolstra
Cgroups are now only used for derivations that require the uid-range range feature. This allows auto UID allocation even on systems that don't have cgroups (like macOS). Also, make things work on modern systems that use cgroups v2 (where there is a single hierarchy and no "systemd" controller).
2022-11-08Merge pull request #7257 from Artturin/ca-referencesremoveThéophane Hufschmitt
tests/impure-derivations.sh: remove unknown experimental feature 'ca-…
2022-11-07Merge pull request #7264 from patricksjackson/remote-bracketsEelco Dolstra
build-remote: Add brackets to error message
2022-11-07Merge pull request #7267 from fricklerhandwerk/build-taskEelco Dolstra
manual: build action -> build task
2022-11-07Merge pull request #7252 from yorickvP/fix-7175Eelco Dolstra
tarfile: set directory mode to at least 0500, don't extract fflags and perms
2022-11-06manual: build action -> build taskValentin Gagarin
after discussing this with multiple people, I'm convinced that "build task" is more precise: a derivation is not an action, but inert until it is built. also it's easier to pronounce. proposal: use "build task" for the generic concept "description of how to derive new files from the contents of existing files". then it will be easier to distinguish what we mean by "derivation" (a specific data structure and Nix language value type) and "store derivation" (a serialisation of a derivation into a file in the Nix store).
2022-11-04build-remote: Add brackets to error messagePatrick Jackson
2022-11-04systemd,launchd match nixos open files limitArtturin
it was bumped in https://github.com/NixOS/nixpkgs/pull/176558
2022-11-04Remove stray tabEelco Dolstra
2022-11-04Fix indentationEelco Dolstra
2022-11-04Fix printing of eval errors with two format placeholdersNaïm Favier
2022-11-03tests/impure-derivations.sh: remove unknown experimental feature 'ca-references'Artturin
ca-references was stabilized in d589a6aa8a5d0c9f391400d7e0e209106e89c857
2022-11-03Merge pull request #7218 from Gabriella439/headlessEelco Dolstra
Add `--yes` option for Nix installation script
2022-11-03Merge remote-tracking branch 'origin/master' into auto-uid-allocationEelco Dolstra
2022-11-03SourceExprCommand: swallow EvalError, add tests for thisYorick van Pelt
Completing things that would error would print an ugly error in the middle of your command line. Avoid printing this error.
2022-11-02Merge pull request #7246 from ↵Eelco Dolstra
NixOS/dependabot/github_actions/cachix/cachix-action-12 Bump cachix/cachix-action from 11 to 12
2022-11-02Temporarily disable the debugger during completion evaluationYorick van Pelt
readline is not re-entrant, so entering the debugger from the completioncallback results in an eventual segfault. The workaround is to temporarily disable the debugger when searching for possible completions.
2022-11-01tarfile: set directory mode to at least 0500, don't extract fflagsYorick van Pelt
We don't need SGID, or any ACL's. We also want to keep every dir +rx.
2022-11-01docs: drop shell prompt character for consistencySagar Patel
In addition to consistency, the fancy "Copy to clipboard" button on the website will copy the prompt character. Retaining the prompt character would mean having to edit each command after pasting in the terminal.
2022-10-31Bump cachix/cachix-action from 11 to 12dependabot[bot]
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 11 to 12. - [Release notes](https://github.com/cachix/cachix-action/releases) - [Commits](https://github.com/cachix/cachix-action/compare/v11...v12) --- updated-dependencies: - dependency-name: cachix/cachix-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
2022-10-31Merge pull request #7231 from jfroche/fix/savedArgv-accessEelco Dolstra
Move savedArgv into libmain
2022-10-31Merge pull request #7039 from Mic92/libfetchers-variantThéophane Hufschmitt
libfetchers: avoid api.github.com ratelimit if no github token is set
2022-10-30Also test github flakes when access tokens are providedJörg Thalheim
2022-10-29Update test after api.github.com ratelimit avoidanceSandro Jäckel
2022-10-28Move savedArgv into libmainJean-François Roche
`savedArgv` is not accessible by plugins when defined in main binary. Moving it into one of the nix lib fix the problem.
2022-10-27assign fricklerhandwerk for documentation releated PRsJörg Thalheim
2022-10-27Merge pull request #7217 from NixOS/restore-nix-build-remoteEelco Dolstra
Fix `nix __build-remote`
2022-10-27Pass the right argv when calling the build hookThéophane Hufschmitt
Call it as `['nix', '__build-remote', ... ]` rather than the previous `["__build-remote", "nix __build-remote", ... ]` which seemed to have been most likely unintended
2022-10-26Merge pull request #7174 from agbrooks/git-tag-bugEelco Dolstra
Prevent fetchGit from using incorrect cached rev for different refs
2022-10-26Merge pull request #7191 from jherland/antiquoted-pathsThéophane Hufschmitt
Explain how Nix handles antiquotation of paths
2022-10-26Fix `nix __build-remote`Théophane Hufschmitt
Because of a wrong index, `nix __build-remote` wasn't working. Fix the index to restore the command (and the build hook).
2022-10-26Merge pull request #7223 from yorickvP/fix-defaultAppThéophane Hufschmitt
nix run: fix "'defaultApp.x86_64-linux' should have type 'derivation'"
2022-10-26nix run: fix "'defaultApp.x86_64-linux' should have type 'derivation'"Yorick van Pelt
2022-10-25Add `--yes` option for Nix installation scriptGabriella Gonzalez
2022-10-25Merge pull request #7206 from akiekintveld/masterThéophane Hufschmitt
Defer to SSH config files for ForwardAgent option
2022-10-25Merge pull request #7207 from NixOS/flake-typeEelco Dolstra
Mark flakes with ._type = "flake".
2022-10-25Merge pull request #7190 from patricksjackson/fix-defaultsThéophane Hufschmitt
Fix default values in the manual
2022-10-25Use _typeEelco Dolstra
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2022-10-25Merge pull request #7196 from sternenseemann/reenable-eval-okay-eqThéophane Hufschmitt
tests/lang: re-enable eval-okay-eq.nix tests
2022-10-25Merge pull request #7212 from wentasah/profile-helpThéophane Hufschmitt
Improve --profile description
2022-10-24Improve --profile descriptionMichal Sojka
The description of the --profile option talks about the "update" operation. This is probably meant for operations such as "nix profile install", but the same option is reused in other subcommands, which do not update the profile, such as "nix profile {list,history,diff-closures}". We update the description to make sense in both contexts.
2022-10-23Mark flakes with .type = "flake".Shea Levy
Fixes #7186
2022-10-22Defer to SSH config files for ForwardAgent optionAustin Kiekintveld
Currently, Nix passes `-a` when it runs commands on a remote machine via SSH, which disables agent forwarding. This causes issues when the `ForwardAgent` option is set in SSH config files, as the command line operation always overrides those. In particular, this causes issues if the command being run is `sudo` and the remote machine is configured with the equivalent of NixOS's `security.pam.enableSSHAgentAuth` option. Not allowing SSH agent forwarding can cause authentication to fail unexpectedly. This can currently be worked around by setting `NIX_SSHOPTS="-A"`, but we should defer to the options in the SSH config files to be least surprising for users.
2022-10-20manual: update options generation code to use default valuesPatrick Jackson
2022-10-20Merge pull request #7185 from ↵Domen Kožar
NixOS/dependabot/github_actions/cachix/cachix-action-11 Bump cachix/cachix-action from 10 to 11
2022-10-19tests/lang: re-enable eval-okay-eq.nix testssternenseemann
This is a really old test case (which was originally written before the proper Nix syntax). The tested deep comparison behavior was implemented and reverted soon after due to performance problems, but it has been restored in today's Nix again (thanks to the derivation comparison optimization, presumably).
2022-10-19Explain how Nix handles antiquotation of pathsJohan Herland
Specifically, explain why Nix does not _re_evaluate paths during a `nix repl` session. This is a thing that bit me while playing around with paths and antiquotation in `nix repl` while reading the Nix language tutorial at https://nix.dev/tutorials/nix-language. Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2022-10-19Merge pull request #7183 from n8henrie/patch-1Eelco Dolstra
Fix typo -- dashes not underscores