Define boot options for more machines

This commit is contained in:
Jimbo 2024-10-20 20:29:38 -04:00
parent 11a93bb2c3
commit d4f132616e
6 changed files with 34 additions and 16 deletions

View file

@ -11,12 +11,12 @@
initrd = { initrd = {
availableKernelModules = [ availableKernelModules = [
"xhci_pci" "xhci_pci"
"ehci_pci" "ehci_pci"
"ahci" "ahci"
"nvme" "nvme"
"usbhid" "usbhid"
"sd_mod" "sd_mod"
"sr_mod" "sr_mod"
]; ];
kernelModules = [ kernelModules = [
"kvm-intel" "kvm-intel"
@ -24,9 +24,7 @@
}; };
swraid = { swraid = {
enable = true; enable = true;
mdadmConf = '' mdadmConf = "MAILADDR jimbo@jimbosfiles.com";
MAILADDR jimbo@jimbosfiles.com
'';
}; };
}; };

View file

@ -1,12 +1,16 @@
{ ... }: { ... }:
{ {
boot.initrd = { boot = {
systemd.enable = true; kernelPackages = pkgs.linuxPackages_latest;
luks.devices = { kernel.sysctl."vm.max_map_count" = 2147483642;
crypt-mmc = { initrd = {
device = "/dev/disk/by-uuid/5906e176-7ad3-41e5-bc45-ae65664eb10c"; systemd.enable = true;
preLVM = true; luks.devices = {
allowDiscards = true; crypt-mmc = {
device = "/dev/disk/by-uuid/5906e176-7ad3-41e5-bc45-ae65664eb10c";
preLVM = true;
allowDiscards = true;
};
}; };
}; };
}; };

View file

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernel.sysctl."vm.max_map_count" = 2147483642;
};
}

View file

@ -2,6 +2,7 @@
{ {
imports = [ imports = [
./hardware ./hardware
./boot
# Apps and programs # Apps and programs
../../../modules/system ../../../modules/system

View file

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernel.sysctl."vm.max_map_count" = 2147483642;
};
}

View file

@ -2,6 +2,7 @@
{ {
imports = [ imports = [
./hardware ./hardware
./boot
# Apps and programs # Apps and programs
../../../modules/system ../../../modules/system