From 9c6c7af4b8e226c1b7edbec68910266f143282f3 Mon Sep 17 00:00:00 2001 From: Hadi Chokr Date: Mon, 27 Apr 2026 18:45:10 +0200 Subject: [PATCH] nixos/systemd: install soft-reboot units Allows running systemctl soft-reboot, to only reboot userspace not full reboot with the kernel included. Signed-off-by: Hadi Chokr --- nixos/modules/system/boot/systemd.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index de2168281c80..9c230e11960a 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -143,6 +143,8 @@ let "final.target" "kexec.target" "systemd-kexec.service" + "soft-reboot.target" + "systemd-soft-reboot.service" ] ++ lib.optional cfg.package.withUtmp "systemd-update-utmp.service" ++ [