feat(nixos): enable Magic SysRq keys for safe crash recovery
Some checks failed
Check / eval (push) Failing after 57s

This commit is contained in:
Bernardo Magri
2026-07-08 22:04:56 +01:00
parent d41e5c18d2
commit eb8f9fad88
3 changed files with 25 additions and 14 deletions

View File

@@ -89,6 +89,10 @@ in
# genuine ZFS-root downstream can still force it back on.
boot.zfs.forceImportRoot = lib.mkDefault false;
# Magic SysRq Keys: safety net for Wayland lockups. Alt+SysRq+REISUB allows
# safe reboot without data loss when the compositor hangs.
boot.kernel.sysctl."kernel.sysrq" = lib.mkDefault 1;
# ── Wayland session: Hyprland ────────────────────────────────────
# Installs the binary, registers the session, wires up
# xdg-desktop-portal-hyprland. Configuration is Home Manager's job.
@@ -242,6 +246,13 @@ in
};
};
# Background filesystem health checks. Scans all BTRFS filesystems to detect
# and (if RAID/dup) correct bitrot before it propagates.
services.btrfs.autoScrub = {
enable = lib.mkDefault true;
interval = lib.mkDefault "monthly";
};
# ── Fonts ────────────────────────────────────────────────────────
# The ten most popular Nerd Fonts ship by default, so any of them
# can be named in the theme state's fonts.mono and actually resolve