Commit graph

433619 commits

Author SHA1 Message Date
Cole Helbling
6eb04c578d nixos/activation/bootspec: bootspec owners also own the cue file 2022-12-08 13:50:05 -08:00
Cole Helbling
5af481f67f nixos/activation/bootspec: fixup improper $out substitution 2022-12-08 13:50:05 -08:00
Cole Helbling
b37cee3dba bootspec: init at unstable-2022-12-05
The bootspec package provides synthesis and validation tooling for
RFC-0125 compliant bootspec documents.
2022-12-08 13:50:05 -08:00
Cole Helbling
fc88e4cf7d nixos/boot/external: drop duplicated external bootloader documentation
The documentation is generated thanks to `meta.doc`, and was out of
date anyways.
2022-12-08 13:50:05 -08:00
Cole Helbling
dce9add02b nixos/activation/bootspec: refactor the generator script
We separate the different steps (injecting the toplevel and injecting
the specialisations) so that it's easy to document what each snippet is
actually doing.
2022-12-08 13:50:05 -08:00
Cole Helbling
38e5089814 nixos/activation/bootspec: drop problematic comment, only generate bootspec when bootspec is enabled 2022-12-08 13:50:05 -08:00
Cole Helbling
97f657c742 nixos/activation/bootspec: DocBook -> Markdown, add description for extensions field 2022-12-08 13:50:05 -08:00
Cole Helbling
cc63293b50 nixos/boot/external: fixup typo in generated docs, regenerate docs 2022-12-08 13:50:05 -08:00
Cole Helbling
ad6ea546b4 nixos/boot/external: DocBook -> Markdown 2022-12-08 13:50:05 -08:00
Raito Bezarius
680369e504 nixos/activation/bootspec: add some comments to explain the delicate manipulations 2022-12-08 13:50:05 -08:00
Raito Bezarius
11dfbee0a4 nixos/activation/bootspec: add bootspec chapter in NixOS manual 2022-12-08 13:50:05 -08:00
Raito Bezarius
9832e3e9b9 nixos/activation/bootspec: remove SB extension example in Cue schema 2022-12-08 13:50:04 -08:00
Raito Bezarius
980f50124f nixos/boot/external: add @raitobezarius as maintainer and allow initrd secrets 2022-12-08 13:50:04 -08:00
Raito Bezarius
092e6d39cd nixos/tests/bootspec: init
This will test various scenarios of bootspec generation.
2022-12-08 13:50:04 -08:00
Raito Bezarius
348ba1b33c nixos/activation/bootspec: module-ify
This does the following:

* turns bootspec into a NixOS module
* validates bootspecs with Cue
* exposes internal knobs
2022-12-08 13:50:04 -08:00
Raito Bezarius
9a431a57b1 nixos/activation/bootspec: add @raitobezarius as a code-owner 2022-12-08 13:50:04 -08:00
Raito Bezarius
ee27291b34 nixos/activation/bootspec: fix slurping specialisation bootspecs 2022-12-08 13:50:04 -08:00
K900
e69c37eae9 nixos/activation: don't generate bootspec for containers 2022-12-08 13:50:04 -08:00
Graham Christensen
e9c85d6d0f nixos/activation/bootspec: embed the document into a bootspec subdir 2022-12-08 13:50:04 -08:00
Graham Christensen
6c0e4e892f nixos/activation/bootspec: embed the entire contents of specialisation's bootspecs into the parent
See: https://github.com/NixOS/rfcs/pull/125#discussion_r871222614
2022-12-08 13:50:04 -08:00
Cole Helbling
83d06ce16d nixos/boot/external: init
This allows supporting external bootloader backends.
2022-12-08 13:50:04 -08:00
Cole Helbling
942dcd238b nixos/activation/bootspec: init bootspec support (RFC-0125) 2022-12-08 13:50:03 -08:00
Jörg Thalheim
0b8b0c65cc
Merge pull request #205187 from Mic92/cue-validator
cue: init writeCueValidator
2022-12-08 21:38:55 +00:00
Jörg Thalheim
09dcdf4e4e cue: test in tests.cue-validation 2022-12-08 22:19:23 +01:00
Raito Bezarius
f25d48180a cue: add documentation on writeCueValidator 2022-12-08 22:19:06 +01:00
figsoda
a5f39d3856
Merge pull request #205177 from r-ryantm/auto-update/hcloud
hcloud: 1.31.0 -> 1.31.1
2022-12-08 15:55:33 -05:00
Raito Bezarius
eca3b89ac2 cue: init writeCueValidator
This adds `writeCueValidator`, which writes a Cue-validating shell script
(see https://cuelang.org/).
2022-12-08 21:50:35 +01:00
Geoffrey Huntley
3ec264787f
coder: 0.12.5 -> 0.13.1 (#204244)
Co-authored-by: Colin Arnott <github@urandom.co.uk>
2022-12-08 21:47:23 +01:00
zowoq
20d1af6df8 containerd: 1.6.10 -> 1.6.12
https://github.com/containerd/containerd/releases/tag/v1.6.11
https://github.com/containerd/containerd/releases/tag/v1.6.12
2022-12-09 06:38:44 +10:00
figsoda
0ae285361f
Merge pull request #205168 from r-ryantm/auto-update/go-task
go-task: 3.18.0 -> 3.19.0
2022-12-08 15:12:48 -05:00
Dmitry Kalinkin
388b494f6b
Merge pull request #198469 from cpcloud/bump-google-cloud-cpp
google-cloud-cpp: 1.38.0 -> 2.4.0
2022-12-08 15:09:57 -05:00
Naïm Favier
de2e3ca3c8
Merge pull request #204128 from ncfavier/vim-python-optional 2022-12-08 21:08:11 +01:00
R. Ryantm
c9eee7f5fd hcloud: 1.31.0 -> 1.31.1 2022-12-08 20:06:19 +00:00
figsoda
44479ad8fe
Merge pull request #205150 from r-ryantm/auto-update/esbuild
esbuild: 0.15.18 -> 0.16.1
2022-12-08 14:54:18 -05:00
Sandro
91fd8d6e2f
Merge pull request #204576 from wegank/mysocketw-darwin 2022-12-08 20:53:55 +01:00
Michele Guerini Rocco
a8550d1553
Merge pull request #204947 from r-ryantm/auto-update/vapoursynth
vapoursynth: 60 -> 61
2022-12-08 20:44:26 +01:00
R. Ryantm
d96378d62d go-task: 3.18.0 -> 3.19.0 2022-12-08 19:22:29 +00:00
Jörg Thalheim
f21f11aa2a
Merge pull request #204899 from r-ryantm/auto-update/telegraf
telegraf: 1.24.3 -> 1.24.4
2022-12-08 18:54:49 +00:00
Bernardo Meurer
d4ec6e6fe5
Merge pull request #204934 from lopsided98/linux-testing-update
linux_testing: 6.1-rc3 -> 6.1-rc8
2022-12-08 13:03:16 -05:00
R. Ryantm
fce4477b94 nicotine-plus: 3.2.6 -> 3.2.7 2022-12-08 12:00:19 -06:00
Bernardo Meurer
1531d427d9
Merge pull request #205155 from lovesegfault/kernel-updates
linuxKernel.kernels: update
2022-12-08 12:39:29 -05:00
Martin Weinelt
2718b0829f
Merge pull request #205154 from r-ryantm/auto-update/evcc 2022-12-08 17:59:47 +01:00
figsoda
7f991a5df1
Merge pull request #204929 from figsoda/ruff
ruff: 0.0.165 -> 0.0.169
2022-12-08 11:56:44 -05:00
Naïm Favier
109f8b4657 nixos/make-options-doc: remove dead code
The logic for pretty-printing Nix values isn't needed any more because
`optionAttrSetToDocList` returns already rendered values.
2022-12-08 17:52:52 +01:00
Naïm Favier
6a117e2759 nixos/doc: render option values using lib.generators.toPretty
Render un`_type`d defaults and examples as `literalExpression`s using
`lib.generators.toPretty` so that consumers don't have to reinvent Nix
pretty-printing. `renderOptionValue` is kept internal for now intentionally.

Make `toPretty` print floats as valid Nix values (without a tilde).

Get rid of the now-obsolete `substSpecial` function.

Move towards disallowing evaluation of packages in the manual by
raising a warning on `pkgs.foo.{outPath,drvPath}`; later, this should
throw an error. Instead, module authors should use `literalExpression`
and `mkPackageOption`.
2022-12-08 17:52:52 +01:00
Naïm Favier
0b661ce32a lib/generators.toPretty: escape strings properly 2022-12-08 17:52:52 +01:00
Naïm Favier
0fa7b1b004 lib/generators.toPretty: don't evaluate derivations
With the goal of making `toPretty` suitable for rendering option
values, render derivations as `<derivation foo-1.0>` instead of
`<derivation /nix/store/…-foo-1.0.drv>`.

This is to avoid causing sudden evaluation errors for out-of-tree
projects that have options with `default = pkgs.someUnfreePackage;` and
no `defaultText`.
2022-12-08 17:52:52 +01:00
Naïm Favier
0ff3b35356 nixos/doc: fix some options 2022-12-08 17:52:52 +01:00
Bernardo Meurer
02a7f67cf0
linux: 6.0.11 -> 6.0.12 2022-12-08 13:50:09 -03:00
Bernardo Meurer
2d1651b612
linux: 5.4.225 -> 5.4.226 2022-12-08 13:49:57 -03:00