2024-06-29 23:30:15 +05:30
|
|
|
{ lib, pkgs, ... }: {
|
|
|
|
imports = [ ./filesystem.nix ];
|
2024-06-25 00:23:05 +05:30
|
|
|
|
2024-06-29 01:08:28 +05:30
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
|
|
|
|
boot = {
|
2024-06-29 23:30:15 +05:30
|
|
|
consoleLogLevel = 3;
|
|
|
|
initrd = {
|
|
|
|
availableKernelModules = [ "xhci_pci" ];
|
|
|
|
systemd.enable = true;
|
|
|
|
};
|
|
|
|
kernelPackages = lib.mkDefault pkgs.linuxPackages_rpi4;
|
|
|
|
kernel.sysctl = {
|
|
|
|
"vm.swappiness" = 10;
|
|
|
|
"vm.dirty_ratio" = 3;
|
|
|
|
};
|
2024-06-29 01:08:28 +05:30
|
|
|
loader = {
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
systemd-boot.enable = true;
|
2024-06-25 00:23:05 +05:30
|
|
|
};
|
|
|
|
};
|
2024-06-29 23:30:15 +05:30
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
2024-06-25 00:23:05 +05:30
|
|
|
}
|