Skip to content

Commit 89e5e1f

Browse files
authored
Merge pull request #4 from tahoe-lafs/3.autoupdate
Turn on NixOS autoUpgrade with reboots as necessary.
2 parents f0fac80 + 7d8d6f7 commit 89e5e1f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

testgrid.tahoe-lafs.org/system-configuration.nix

+10-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,16 @@
4141
# Enable the X11 windowing system.
4242
# services.xserver.enable = true;
4343

44-
45-
44+
# Periodically upgrade NixOS to the latest version. If enabled, a systemd
45+
# timer will run `nixos-rebuild switch --upgrade` once a day.
46+
system.autoUpgrade = {
47+
enable = true;
48+
49+
# Reboot the system into the new generation instead of a switch if the new
50+
# generation uses a different kernel, kernel modules or initrd than the
51+
# booted system.
52+
allowReboot = true;
53+
};
4654

4755
# Configure keymap in X11
4856
# services.xserver.layout = "us";

0 commit comments

Comments
 (0)