Commit graph

83 commits

Author SHA1 Message Date
Emily 42a1d455ce nixos/doc/imperative-containers: add boot.enableContainers note 2025-08-25 20:20:56 +01:00
Wolfgang Walther 62fe016519
treewide: run treefmt with mdcr/nixfmt 2025-07-24 13:52:31 +02:00
Wolfgang Walther 6c47e7d5da
treewide: fix syntax errors in nix code blocks
Fixes all code blocks with "nix" language in markdown files for syntax
errors to be able to run nixfmt in the next step.
2025-07-24 13:52:29 +02:00
Arnout Engelen aba83e0a5d
nixos/doc: document defining basic systemd services 2025-06-20 11:55:11 +02:00
Will Fancher 37ee6ba681 Revert "NixOS apply script"
Reverts #344407

This has broken nixos-rebuild switch so that it no longer updates the profile, which has bad consequences including not updating the systemd-boot menu with new generations.
2024-11-01 20:18:09 -04:00
Robert Hensing 7902cea1de nixos: Update documentation to refer to bin/apply 2024-10-30 00:21:21 +01:00
Julien Malka d4f44d1cb1
Merge pull request #300705 from JulienMalka/official-wiki 2024-04-01 18:59:20 +02:00
Julien Malka 7d4b7ac4df
treewide: point wiki links to official wiki 2024-04-01 16:26:00 +02:00
Janne Heß fcc95ff817 treewide: Fix all Nix ASTs in all markdown files
This allows for correct highlighting and maybe future automatic
formatting. The AST was verified to work with nixfmt only.
2024-03-28 09:28:12 +01:00
Silvan Mosberger ef8ce2794b
Merge pull request #241953 from MultisampledNight/doc/fix-outdated-containers
doc: fix outdated /var/lib/container from pre-22.05 listing in NixOS manual
2024-01-18 16:06:08 +01:00
nicoo 6012fe8f2d nixos/doc/manual: Rework nixos-state.section.md 2023-12-12 23:06:10 +00:00
nicoo 22cb8a1712 nixos/doc/manual: Add /var/lib/nixos under “Necessary system state” 2023-12-12 23:04:32 +00:00
nicoo 735481ef6b nixos/doc: Add chapter “necessary system state”
Suggested in the discussion of #268995.
2023-12-12 23:04:32 +00:00
Janne Heß da6c61cc19
nixos/manual: Add chapter about instance unit overrides 2023-08-13 14:40:25 +02:00
MultisampledNight 0ba017171d
doc: fix outdated /var/lib/container from pre-2205 2023-07-06 17:55:56 +02:00
pennae 1229e735ac nixos-render-docs: add structural includes, use for manual
this adds support for structural includes to nixos-render-docs.
structural includes provide a way to denote the (sub)structure of the
nixos manual in the markdown source files, very similar to how we used
literal docbook blocks before, and are processed by nixos-render-docs
without involvement of xml tooling. this will ultimately allow us to
emit the nixos manual in other formats as well, e.g. html, without going
through docbook at all.

alternatives to this source layout were also considered:

a parallel structure using e.g. toml files that describe the document
tree and links to each part is possible, but much more complicated to
implement than the solution chosen here and makes it harder to follow
which files have what substructure. it also makes it much harder to
include a substructure in the middle of a file.

much the same goes for command-line arguments to the converter, only
that command-lined arguments are even harder to specify correctly and
cannot be reasonably pulled together from many places without involving
another layer of tooling. cli arguments would also mean that the manual
structure would be fixed in default.nix, which is also not ideal.
2023-02-12 13:02:42 +01:00
Naïm Favier d11832fd96
doc,nixos/doc: unescape apostrophes
Leftovers from the CommonMark conversion.
2022-12-27 17:13:47 +01:00
ajs124 817ca3699e treewide: change postgresql_10 in documentation and examples to postgresql_14 2022-08-15 22:36:32 +02:00
adisbladis f535d6f45e nixos-container: Use new configuration & state directories
We need to move NixOS containers somewhere else so these don't clash
with Podman, Skopeo & other container software in the libpod &
cri-o/cri-u/libcontainer ecosystems.

The state directory move is not strictly a requirement but is good for
consistency.
2022-04-27 18:35:08 +12:00
ajs124 757dd008b2 postgresql_9_6: drop 2021-12-03 01:14:29 +01:00
Joachim Breitner f6fffb2722 Nixos manual: nixos-rebuild boot or switch to clear boot entries
the `nixos-rebuild` command has multiple subcommands, and not each of
them would fix the problem of a large `/boot` partition, so let’s be
more precise here.
2021-10-28 12:08:37 +02:00
Bobby Rong 3d711cfc5e
nixos: nixos/doc/manual/administration/troubleshooting.xml to CommonMark 2021-09-08 14:42:23 +08:00
Bobby Rong 5aaeddee5f
nixos: nixos/doc/manual/administration/containers.xml to CommonMark 2021-09-08 14:40:26 +08:00
Jörg Thalheim 0d789e992f
Merge pull request #128937 from bobby285271/pr8
nixos/doc: convert "Chapter 55. Container Management" to CommonMark
2021-09-07 06:24:21 +01:00
Jörg Thalheim 5de68de484
Merge pull request #128935 from bobby285271/pr7
nixos/doc: convert "Chapter 56. Troubleshooting" to CommonMark
2021-09-07 06:20:47 +01:00
Jörg Thalheim c0735214e1
Merge pull request #129083 from bobby285271/pr12
nixos/doc: convert Chapter 49, 50, 51, 52, 53, 54 to CommonMark
2021-09-07 06:19:33 +01:00
Bobby Rong b69b26c1a1 nixos: use only URI fragment in manual options links 2021-07-04 08:56:20 +08:00
Bobby Rong 9f7f6d2256 nixos: nixos/doc/manual/administration typo fix
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2021-07-03 23:20:39 +08:00
jakobrs 2e4849b841 installation-cd-base.nix: Add 'live.nixos.passwd' boot option
For interactive SSH access to a system without a (working)
keyboard and monitor, without rebuilding the image itself.
2021-07-03 09:53:16 +02:00
Bobby Rong c603692b0c nixos: nixos/doc/manual/administration/cleaning-store.xml to CommonMark 2021-07-03 14:35:18 +08:00
Bobby Rong e4ad7d6fc7 nixos: nixos/doc/manual/administration/logging.xml to CommonMark 2021-07-03 14:34:58 +08:00
Bobby Rong e63f523491 nixos: nixos/doc/manual/administration/control-groups.xml to CommonMark 2021-07-03 14:33:50 +08:00
Bobby Rong 8ee759d7cf nixos: nixos/doc/manual/administration/user-sessions.xml to CommonMark 2021-07-03 14:32:35 +08:00
Bobby Rong adbe4e34d6 nixos: nixos/doc/manual/administration/rebooting.xml to CommonMark 2021-07-03 14:31:57 +08:00
Bobby Rong d37933c01f nixos: nixos/doc/manual/administration/service-mgmt.xml to CommonMark 2021-07-03 14:31:14 +08:00
Bobby Rong 9b52df304b nixos: nixos/doc/manual/administration/container-networking.xml to CommonMark 2021-07-02 11:59:12 +08:00
Bobby Rong 4f0efa8d7d nixos: nixos/doc/manual/administration/declarative-containers.xml to CommonMark 2021-07-02 11:58:34 +08:00
Bobby Rong 0ac3e57ac1 nixos: nixos/doc/manual/administration/imperative-containers.xml to CommonMark 2021-07-02 11:57:33 +08:00
Bobby Rong 828474abfb nixos: nixos/doc/manual/administration/network-problems.xml to CommonMark 2021-07-02 10:49:14 +08:00
Bobby Rong 4df0b9903d nixos: nixos/doc/manual/administration/store-corruption.xml to CommonMark 2021-07-02 10:48:31 +08:00
Bobby Rong 99493b61ea nixos: nixos/doc/manual/administration/rollback.xml to CommonMark 2021-07-02 10:47:32 +08:00
Bobby Rong b5215f3f73 nixos: nixos/doc/manual/administration/maintenance-mode.xml to CommonMark 2021-07-02 10:46:34 +08:00
Ryan Mulligan 77cfa5fd07 nixos/doc: convert boot problems section to CommonMark 2021-06-07 20:14:20 -07:00
Michele Guerini Rocco 25d15ebffb
Merge pull request #98661 from doronbehar/doc/nixos/systemd-nixos-specific
doc/nixos: Explain better NixOS specific Systemd stuff
2020-11-06 11:52:58 +01:00
Doron Behar 8716b71ea6 doc/nixos: Explain better NixOS specific Systemd stuff
Divide the "Service Management" chapter into two sections. The 1st (the
original) explaining General, not NixOS specific ways to interact with
Systemd. The 2nd section, explaining NixOS specific things worth
knowing.

Explain in the 2nd section a bit NixOS modules and services of Nixpkgs,
and mention `systemd.user.services` option. Give an example
demonstrating how to enable imperatively an upstream provided unit file
for a user. Explain why `systemctl --user enable` doesn't work for the
long term on NixOS.
2020-11-06 11:35:59 +02:00
rnhmjoj bc62423a87
nixos/doc: convert loaOf options refs to attrsOf 2020-09-02 00:42:51 +02:00
jakobrs 2ee84ca8e2
nixos/manual: Document boot.debug1mounts and clarify what exit does with shell_on_fail (#89365)
* nixos/manual: document boot.debug1mounts

* nixos/manual: clarify what `exit` does with shell_on_fail
2020-06-17 15:36:06 +02:00
Jan Tojnar e6ce041cae
nixos/doc: Improve code listings
By adding prompts and replaceables and removing unnecessary indentation.
2020-09-23 01:25:25 +02:00
Wout Mertens 3202f64465
nixos doc: clarify role of boot.debug1devices
Co-Authored-By: Jörg Thalheim <Mic92@users.noreply.github.com>
2019-11-13 20:39:11 +01:00
Wout Mertens 89c8338b51
nixos boot doc: document boot.debug1devices 2019-11-13 16:35:00 +01:00