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

22 lines
444 B
Nix

{ lib, ... }: {
imports = [ ./filesystem.nix ];
boot = {
consoleLogLevel = 3;
initrd = {
systemd.enable = true;
};
kernel.sysctl = {
"vm.swappiness" = 10;
"vm.dirty_ratio" = 3;
};
loader = {
efi.canTouchEfiVariables = true;
systemd-boot = {
enable = true;
configurationLimit = 15;
};
};
};
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
}