tweak boot configuration on nixdesk

This commit is contained in:
xunuwu 2025-04-13 11:25:58 +02:00
parent 719c099f9b
commit 2e1cdac694
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI

View file

@ -15,6 +15,7 @@
boot = {
kernelPackages = pkgs.linuxPackages_latest;
initrd = {
verbose = false;
availableKernelModules = [
"nvme"
"xhci_pci"
@ -30,7 +31,7 @@
# rtl88xxau-aircrack # usb wifi card
];
loader = {
timeout = 10;
timeout = 0;
systemd-boot = {
enable = true;
consoleMode = "max";
@ -42,6 +43,7 @@
efiSysMountPoint = "/boot";
};
};
tmp.cleanOnBoot = true;
};
fileSystems = {
@ -72,8 +74,11 @@
};
boot.resumeDevice = "/dev/disk/by-uuid/d87276c0-ef9c-422e-b2de-effc1b47c654";
boot.kernelParams = [
"nowatchdog"
# btrfs inspect-internal map-swapfile -r /.swapvol/swapfile
boot.kernelParams = ["resume_offset=326444288"];
"resume_offset=326444288"
];
swapDevices = lib.singleton {
device = "/.swapvol/swapfile";