diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2021-09-10 11:19:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 11:19:12 +0100 |
commit | c2b276369d79aeb65fc15d9a493d5f5c53d1153e (patch) | |
tree | 70caccc71bc62ca3047aac3442197818a3fc9bbb /nixos | |
parent | 8d0bc837e562b28aa6abb99447a69307e2f9b1bf (diff) | |
parent | 23b21c77f61a49178eb231e560ce95464625da02 (diff) |
Merge pull request #137224 from helsinki-systems/dry-activation-scripts-to-changelog
nixos/release-notes: Document dry activation scripts
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/doc/manual/from_md/release-notes/rl-2111.section.xml | 11 | ||||
-rw-r--r-- | nixos/doc/manual/release-notes/rl-2111.section.md | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml index 22c31fb23f0d..5554927b8b2a 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml @@ -37,6 +37,17 @@ PostgreSQL now defaults to major version 13. </para> </listitem> + <listitem> + <para> + Activation scripts can now opt int to be run when running + <literal>nixos-rebuild dry-activate</literal> and detect the + dry activation by reading <literal>$NIXOS_ACTION</literal>. + This allows activation scripts to output what they would + change if the activation was really run. The users/modules + activation script supports this and outputs some of is + actions. + </para> + </listitem> </itemizedlist> </section> <section xml:id="sec-release-21.11-new-services"> diff --git a/nixos/doc/manual/release-notes/rl-2111.section.md b/nixos/doc/manual/release-notes/rl-2111.section.md index 9e9ed4dad97b..00844d529b77 100644 --- a/nixos/doc/manual/release-notes/rl-2111.section.md +++ b/nixos/doc/manual/release-notes/rl-2111.section.md @@ -14,6 +14,10 @@ In addition to numerous new and upgraded packages, this release has the followin - PostgreSQL now defaults to major version 13. +- Activation scripts can now opt int to be run when running `nixos-rebuild dry-activate` and detect the dry activation by reading `$NIXOS_ACTION`. + This allows activation scripts to output what they would change if the activation was really run. + The users/modules activation script supports this and outputs some of is actions. + ## New Services {#sec-release-21.11-new-services} - [btrbk](https://digint.ch/btrbk/index.html), a backup tool for btrfs subvolumes, taking advantage of btrfs specific capabilities to create atomic snapshots and transfer them incrementally to your backup locations. Available as [services.btrbk](options.html#opt-services.brtbk.instances). |