1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 00:06:26 -04:00
Commit graph

1564 commits

Author SHA1 Message Date
Valentin Gagarin f28a554a99 CODEOWNERS: reorganise
- Assign subscriptions explicitly to some paths
- Use new documentation-reviewers GitHub team
2024-01-15 20:22:08 +01:00
asymmetric bc5233a013
Merge pull request #708 from NixOS/dependabot/github_actions/actions/checkout-4
chore(deps): bump actions/checkout from 3 to 4
2023-12-15 12:32:11 +01:00
dependabot[bot] 7d07e2265a chore(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-15 12:29:05 +01:00
Jeff Huffman e3f4d7be86
add FAQ entry on how to run non-nix executables (#832) 2023-12-11 11:39:21 +01:00
Anthony Camarillo 876483a1f4
fix grammar and punctuation in declarative-shell.md (#834) 2023-12-08 01:11:52 +00:00
Silvan Mosberger 3569f20396
Merge pull request #828 from turbotimon/patch-1
fix missing word "in" in possible-url-values
2023-12-05 15:15:08 +01:00
ET 824d81db97
fix missing word "in" 2023-12-05 14:24:11 +01:00
olaf aaf63e8845
Update CODEOWNERS (#825) 2023-12-05 00:45:40 +01:00
Robert Hensing 9cc2ddd16a
Merge pull request #764 from fricklerhandwerk/add-manuals
host Nix reference manual on nix.dev
2023-12-04 17:10:45 +01:00
Valentin Gagarin 68ded85b87 NixOS 23.11 was released 2023-12-04 16:52:49 +01:00
worktheclock 5b898ae819
Deploying NixOS using Terraform grammar check (#220) 2023-12-03 01:08:59 +00:00
asymmetric 3d02c7a490
Merge pull request #818 from NixOS/dependabot/github_actions/cachix/install-nix-action-24
chore(deps): bump cachix/install-nix-action from 23 to 24
2023-12-02 10:13:54 +01:00
asymmetric 68852a880b
Merge pull request #819 from NixOS/dependabot/github_actions/cachix/cachix-action-13
chore(deps): bump cachix/cachix-action from 12 to 13
2023-12-02 10:13:33 +01:00
Brian McGillion 2d6276114d
tutorials: Map Module (#820)
* tutorial: Propagate previous geocode changes

Propagate the changes made in a previous code snippet to this code
snippet. Primarily fixing the poorly referenced ``${geocode``.

* tutorial: Fix requestParams for path.nix

Adjust the functionality to reference geocode correctly and
also to make sure of the correct escaping formats.

Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-12-01 23:51:34 +01:00
Silvan Mosberger bd7f4930fb CODEOWNERS: Remove outdated learning journey entries 2023-12-01 14:49:08 +01:00
Silvan Mosberger a33ffa18f4 CODEOWNERS: Set @infinisil as codeowner of the file sets tutorial 2023-12-01 14:49:08 +01:00
Silvan Mosberger cdf282de95 file-sets: Use hasExt for fileFilter
Now that https://github.com/NixOS/nixpkgs/pull/266362 is merged
2023-12-01 14:49:08 +01:00
Silvan Mosberger 0c688e044f file-sets: Use stable references
Now that 23.11 is released
2023-12-01 14:49:08 +01:00
Valentin Gagarin b29081d5c6
fix typography (#822) 2023-12-01 00:57:48 +01:00
Silvan Mosberger 0249563433
Merge pull request #811 from fricklerhandwerk/simplify-devmode
fix and simplify devmode script
2023-11-30 16:55:13 +01:00
Valentin Gagarin 63d783a3bc fix and simplify devmode script
previously, stderr was garbled, which made it really annoying to deal
with build errors.

it turns out that the library wrapper around calling a process is not
just counterproductive, but also completely unnecessary.

the build now takes longer because it's not incremental any more.
but the problem with `sphinx-build` in a shell environment is that it
doesn't keep track of an entire class of files, that would have to be
considered manually. this is too much manual overhead that doesn't scale
at all. with the new setup the live preview will do exactly what the
final deployment does.

[1]: https://github.com/executablebooks/sphinx-autobuild#relevant-sphinx-bugs

Co-authored-by: Alex Groleau source@proof.construction
2023-11-30 16:53:33 +01:00
Daniel R 6946cb0e2e
move question on rechecking binary cache to a Nix recipe (#808)
* mv question -f faqs -t nix-recipes

* add nix-recipes to page index and fix hierarchy

* change question to statement

* rephrase a few sentences and add links

* move the question to troubleshooting

* fix broken link

---------

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-30 16:41:18 +01:00
asymmetric 7cf19eced1
Add asymmetric to CODEOWNERS for workflows (#821) 2023-11-30 16:41:02 +01:00
Valentin Gagarin 755e949a53
reduce the sharing dependencies tutorial to a guide (#778)
* shorten the sharing dependencies article to a guide

the contents do not really warrant a full-blown tutorial

* use an example with an explicit build-time dependency

* fix typo

* link `inputsFrom` to Nixpkgs manual
2023-11-30 16:17:35 +01:00
dependabot[bot] d627f2d74d
chore(deps): bump cachix/cachix-action from 12 to 13
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 12 to 13.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v12...v13)

---
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>
2023-11-29 00:25:34 +00:00
dependabot[bot] 4c852890e9
chore(deps): bump cachix/install-nix-action from 23 to 24
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 23 to 24.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v23...v24)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-29 00:25:30 +00:00
Brian McGillion b58466875c
tutorial: Fix the markers to build and concatenate (#816)
The current code has a number of issues.

1. realising the code results in:

``
markers=$(geocode 'New York') size=640x640 scale=2 zoom=7 ...
        ^-------------------^ SC2046 (warning): Quote this to prevent
        word splitting.
``

2.
``
$(geocode ${lib.escapeShellArg marker.location})"
``

Assumes that geocode has been added to the PATH so replace with

``
${config.scripts.geocode}/bin/geocode
``

as per previous examples.

3.
``
  in "markers=${ lib.concatStringsSep "\\|" attributes}";
in builtins.map paramForMarker config.map.markers;
``

The ordering of this actually creates multiple ``[markers =]``
parameters and does not use the concatenation string to join the
attributes together (in effect there is only 1 attribute per call) to
map, and 1 new ``marker`` created.

Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
2023-11-28 21:30:28 +01:00
Ming 791eb47e44
Show option to enable hardware acceleration (#809)
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Henrik <i97henka@gmail.com>
2023-11-27 16:59:49 +01:00
olaf 1a404f203e
vm improve reproducible command and 23.11 (#807)
* better reproducable command and 23.11

Co-authored-by: Henrik <i97henka@gmail.com>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-27 16:39:04 +01:00
Silvan Mosberger 5b61e02ed8
Merge pull request #813 from fricklerhandwerk/fix-redirect
add missing redirect
2023-11-27 13:34:01 +01:00
Yannis Charalambidis cbc1b2e95e
Fix typo (#814) 2023-11-27 12:03:01 +01:00
Valentin Gagarin 6c7e15d61b add missing redirect 2023-11-27 07:49:03 +01:00
Brian McGillion 327c100954
tutorials: fix passing paramaters to geocode (#812)
* tutorials: fix passing paramaters to geocode

When running the package as-is the following error occurs

``geocode: line 7: $1: unbound``

This is caused because ``scripts.geocode`` does not pass the parameters
down to the wrapped script ``geocode``.

Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
2023-11-27 07:42:07 +01:00
Valentin Gagarin f587e1d1cf use sentence case for titles consistently 2023-11-27 07:31:32 +01:00
Valentin Gagarin 8264c846ef link to new Nix reference manual page 2023-11-27 07:31:32 +01:00
fricklerhandwerk fee5c5c2ab add update instructions 2023-11-27 07:30:36 +01:00
fricklerhandwerk c70711a9d5 update all links to the Nix manual 2023-11-27 07:30:36 +01:00
fricklerhandwerk 21bfef408a host Nix reference manual on nix.dev
this is the most cursed setup you will see any time soon.

we're dumping the Nix manual unchanged into the build tree *after*
building. the reason is that we'd want to link to it from our table of
contents, but because Sphinx does not allow adding arbitrary files to
the build output in arbitrary locations (only `_static` works). but we
want to place the manual behind a particular URL, and the alternative of
maintaining URL rewrites (e.g. in nginx) is not accessible here because the
infrastructure is managed somewhere else.

now that the files won't appear in their desired locations at Sphinx
build time, we can't use relative links to reference them, therefore we
have to resort to pointing to the web URL the manual will appear at.
this is terrible and I'm sorry. please fix this if you have a better
idea. once we use URLs though, we have to avoid linkchecking, since
those files may not be there before deploying them.

figuring all of this out took way longer than anyone would wish.

Co-authored-by: Alejandro Sanchez Medina <alejandrosanchzmedina@gmail.com>
2023-11-27 07:30:35 +01:00
Alexandre Macabies a15d8a3eda
Fix link anchor typo (#810) 2023-11-25 15:32:24 +00:00
Silvan Mosberger 614b6fe50f
File sets tutorial (#802)
* source file selection tutorial

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2023-11-23 17:14:46 +01:00
olaf 7941b348a0
vm change to reproducible command (#804)
* add paragraph on a reproducible nixos-generate-config

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-22 17:43:38 +01:00
olaf 35c4ebadcd
Merge pull request #805 from NixOS/fix-typo
fix typo
2023-11-21 23:58:08 +01:00
Valentin Gagarin 5f5ef7349a
fix typo 2023-11-21 23:50:38 +01:00
Silvan Mosberger 12d0f9d7f1
build-and-deploy: Disable github deployments (#803)
They create a lot of spam in the PR timeline
2023-11-21 20:34:14 +01:00
Silvan Mosberger 37922482b7
Module system deep dive tutorial (#645)
* Draft module system introduction tutorial

* add intro/conclusion, rework prose, follow styleguide, clean diffs

* Review pass

* Apply suggestions from code review

* fix whitespace

* add some more motivation the each section

* make scripts downloadable

* address review comments

* make script actually work

...hopefully. can't test it without Google API key

* add file watching

yes, this looks scary, and yes, it works.

* update diff and wording

* more notes on potential pitfalls

* be explicit which `map` we mean

* split nullable from default values

* also wrap the geocode script

* work through the tutorial to the end

* add tutorial overview

* `lib` is always passed

* add separate section for `evalModules` and fix link

* make option strucutre more self-explanatory

* explain command line invocations

* add note on incomplete reference documentation

* add more highlight to the `config` distinction

* fix parameter passing to the `./map` script

* fix typo

* fix wording

* link to summer of nix

* add missing word

* link to Google Maps API docs

* more explicit requirement

* use correct module system terminology

* Update source/tutorials/module-system/module-system.md

* Apply suggestions from code review

* whitespace

* module-system.md: replace comments with captions

* add missing lang for code-block

* Update module system title

* change most headers to be about module features (#797)

* change most headers to be about module features

Some headers could not be made about module features, and that's a
strong signal that those sections should be removed.

* Apply suggestions from code review

* module-system.md: Fix header casing

Co-authored-by: Alexander Groleau <source@proof.construction>
Co-authored-by: asymmetric <lorenzo@mailbox.org>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-20 17:21:06 +01:00
Daniel Sidhion 46bbb436d8
Update documentation team meeting link (#801) 2023-11-18 18:14:24 +01:00
Silvan Mosberger a77d314879
Less confusing stable channel recommendation (#791)
* Less confusing stable channel recommendation

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-16 17:37:59 +01:00
Ryan Casalino 5e16a993ba
add SOURCE_DATE_EPOCH to Makefile to fix copyright year (#800)
* add SOURCE_DATE_EPOCH to Makefile to fix copyright year

* use date to get unix time in place of git log

* Update Makefile

pass in --date='Jan 1' to date as suggested

Co-authored-by: Silvan Mosberger <github@infinisil.com>

---------

Co-authored-by: Silvan Mosberger <github@infinisil.com>
2023-11-15 05:16:27 +01:00
asymmetric d135cab53f
Merge pull request #798 from NixOS/vale
Add prose lint checks with Vale
2023-11-13 14:41:12 +01:00
Lorenzo Manacorda 43aeb8fecc ci: run vale with nix-shell
To ensure it's the same version as when doing local development.
2023-11-13 13:52:54 +01:00