configuration.nix/hosts/rico2/hardware/default.nix

25 lines
607 B
Nix
Raw Normal View History

2024-06-29 23:30:15 +05:30
{ lib, pkgs, ... }: {
imports = [ ./filesystem.nix ];
2024-06-29 17:52:32 +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 17:52:32 +05:30
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
supportedFilesystems = [ "vfat" "btrfs" "ext4" ];
};
2024-06-29 23:30:15 +05:30
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
2024-06-29 17:52:32 +05:30
}