This commit is contained in:
Henri Dohmen 2025-05-26 01:08:54 +02:00
parent dbd88aea66
commit 8fbd9d06b4
29 changed files with 130 additions and 101 deletions

20
mod/common/boot.nix Normal file
View file

@ -0,0 +1,20 @@
{ pkgs, ... }:
{
boot = {
loader = {
efi.canTouchEfiVariables = true;
grub = {
enable = true;
efiSupport = true;
device = "nodev";
};
};
# otherwise /tmp is on disk. This *may* be problematic as nix
# builds in /tmp but I think my swap is large enough...
tmp.useTmpfs = true;
kernelPackages = pkgs.linuxPackages_6_13;
kernel.sysctl."kernel.sysrq" = 1;
};
}