allow automatic rebooting on kernel updates (disable debug)

This commit is contained in:
Daniel Frank 2019-07-03 23:02:26 +02:00
parent 41a3cdbedb
commit 02811d2eb7
Signed by: tokudan
GPG key ID: 063CCCAD04182D32

View file

@ -93,7 +93,6 @@ let cfg = config.system.autoUpgrade; in
script = '' script = ''
${lib.optionalString cfg.allowReboot '' ${lib.optionalString cfg.allowReboot ''
set -euo pipefail set -euo pipefail
set -x
T=$(mktemp -d) T=$(mktemp -d)
cd "$T" cd "$T"
${config.system.build.nixos-rebuild}/bin/nixos-rebuild build ${toString cfg.flags} ${config.system.build.nixos-rebuild}/bin/nixos-rebuild build ${toString cfg.flags}