about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2023-10-13 17:19:25 +0100
committerGitHub <noreply@github.com>2023-10-13 17:19:25 +0100
commit57a3c0348676e256e77920b1d58c41a53e99f7b4 (patch)
treee6bbfa7626b28ef14feac23f7c50d085534c9826 /nixos
parentaead6ea9b60386c04da4ab4b43938456ddeeae45 (diff)
parent1e79cca679380dd9fa05e76c11a22815cfcde773 (diff)
downloadnixlib-57a3c0348676e256e77920b1d58c41a53e99f7b4.tar
nixlib-57a3c0348676e256e77920b1d58c41a53e99f7b4.tar.gz
nixlib-57a3c0348676e256e77920b1d58c41a53e99f7b4.tar.bz2
nixlib-57a3c0348676e256e77920b1d58c41a53e99f7b4.tar.lz
nixlib-57a3c0348676e256e77920b1d58c41a53e99f7b4.tar.xz
nixlib-57a3c0348676e256e77920b1d58c41a53e99f7b4.tar.zst
nixlib-57a3c0348676e256e77920b1d58c41a53e99f7b4.zip
Merge pull request #258571 from thiagokokada/nixos-rebuild-system-run
nixos-rebuild: run activation inside systemd-run
Diffstat (limited to 'nixos')
-rw-r--r--nixos/doc/manual/release-notes/rl-2311.section.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/doc/manual/release-notes/rl-2311.section.md b/nixos/doc/manual/release-notes/rl-2311.section.md
index b990c20796ee..7b617bf523cf 100644
--- a/nixos/doc/manual/release-notes/rl-2311.section.md
+++ b/nixos/doc/manual/release-notes/rl-2311.section.md
@@ -217,6 +217,8 @@
 
 - `fileSystems.<name>.autoResize` now uses `systemd-growfs` to resize the file system online in stage 2. This means that `f2fs` and `ext2` can no longer be auto resized, while `xfs` and `btrfs` now can be.
 
+- `nixos-rebuild {switch,boot,test,dry-activate}` now runs the system activation inside `systemd-run`, creating an ephemeral systemd service and protecting the system switch against issues like network disconnections during remote (e.g. SSH) sessions. This has the side effect of running the switch in an isolated environment, that could possible break post-switch scripts that depends on things like environment variables being set. If you want to opt-out from this behavior for now, you may set the `NIXOS_SWITCH_USE_DIRTY_ENV` environment variable before running `nixos-rebuild`. However, keep in mind that this option will be removed in the future.
+
 - The `services.vaultwarden.config` option default value was changed to make Vaultwarden only listen on localhost, following the [secure defaults for most NixOS services](https://github.com/NixOS/nixpkgs/issues/100192).
 
 - `services.lemmy.settings.federation` was removed in 0.17.0 and no longer has any effect. To enable federation, the hostname must be set in the configuration file and then federation must be enabled in the admin web UI. See the [release notes](https://github.com/LemmyNet/lemmy/blob/c32585b03429f0f76d1e4ff738786321a0a9df98/RELEASES.md#upgrade-instructions) for more details.