Fix needsreboot activation script

This commit is contained in:
2025-11-06 09:14:41 -05:00
parent 3a92c8be54
commit e9f931bb7a
3 changed files with 45 additions and 47 deletions

View File

@@ -255,10 +255,8 @@
needsreboot = {
supportsDryActivation = true;
text = ''
if [[ -e /run/current-system ]]; then
echo -e "\e[36mSystem changes requiring a reboot:\e[0m"
${inputs.nixos-needsreboot.packages.${pkgs.system}.default}/bin/nixos-needsreboot --dry-run
fi
echo -e "\e[36mSystem changes requiring a reboot:\e[0m"
${inputs.nixos-needsreboot.packages.${pkgs.system}.default}/bin/nixos-needsreboot --dry-run || true
'';
};
};