This commit is contained in:
Hadi
2024-08-22 15:25:32 +02:00
parent a240a76a8e
commit 3ef71b9fa2
11 changed files with 49 additions and 124 deletions

10
hosts/modules/grub.nix Normal file
View File

@@ -0,0 +1,10 @@
{ pkgs, ... }: {
boot = {
loader.grub.enable = true;
loader.grub.device = "/dev/sda";
loader.grub.useOSProber = true;
tmp.cleanOnBoot = true;
kernelPackages =
pkgs.linuxPackages_latest; # _zen, _hardened, _rt, _rt_latest, etc.
};
}

View File

@@ -26,4 +26,8 @@
TTYVHangup = true;
TTYVTDisallocate = true;
};
# To prevent getting stuck at shutdown
systemd.extraConfig = "DefaultTimeoutStopSec=10s";
}