This commit is contained in:
xunuwu 2024-02-07 19:05:44 +01:00
commit 498f3050d5
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
145 changed files with 2964 additions and 0 deletions

34
system/core/boot.nix Normal file
View file

@ -0,0 +1,34 @@
{
pkgs,
config,
...
}: {
boot = {
initrd = {
systemd.enable = true;
supportedFilesystems = ["ext4"];
};
## use latest kernel
kernelPackages = pkgs.linuxPackages_latest;
consoleLogLevel = 3;
kernelParams = [
"quiet"
"systemd.show_status=auto"
"rd.udev.log_level=3"
];
loader = {
# systemd-boot on UEFI
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
plymouth.enable = true;
};
environment.systemPackages = [
config.boot.kernelPackages.cpupower
];
}