1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-01 19:43:56 +00:00
ultima/modules/nixos/hardware/boot/default.nix
2024-11-21 18:24:15 +09:00

63 lines
1.5 KiB
Nix

{ pkgs, lib, config, modulesPath, True, ... }:
with lib;
let cfg = config.module.hardware.boot;
in {
options = { module.hardware.boot = { enable = mkEnableOption ""; }; };
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
config = mkIf cfg.enable {
boot = { # ITSELF LOL
kernelPackages = pkgs.linuxPackages_zen;
kernelModules = [ "kvm-amd" ];
consoleLogLevel = 0;
kernelParams = [
"quiet"
"loglevel=3"
"nowatchdog"
"page_alloc.shuffle=1"
"threadirqs"
"split_lock_detect=off"
"pci=pcie_bus_perf"
"psmouse.synaptics_intertouch=0"
"rd.systemd.show_status=false"
];
loader = { # SYSTEMD BOOT AS DEFAULT
systemd-boot = True // { configurationLimit = 4; };
efi.canTouchEfiVariables = true;
timeout = 0; # TIMEOUT FOR LAUNCH
};
initrd = { # IDK
availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"ohci_pci"
"ehci_pci"
"pata_atiixp"
"ums_realtek"
"sd_mod"
"sr_mod"
"sdhci_pci"
"usb_storage"
];
systemd = True;
compressor = "zstd";
compressorArgs = [ "-9" ];
verbose = false;
};
plymouth = True // { # PLYMOUTH WITH NIXOS LOGO
logo =
"${pkgs.nixos-icons}/share/icons/hicolor/48x48/apps/nix-snowflake-white.png";
};
tmp.cleanOnBoot = true;
};
};
}