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

23 lines
444 B
Nix
Raw Normal View History

{ lib, ... }: {
2024-06-29 23:30:15 +05:30
imports = [ ./filesystem.nix ];
2024-06-29 17:52:32 +05:30
boot = {
2024-06-29 23:30:15 +05:30
consoleLogLevel = 3;
initrd = {
systemd.enable = true;
};
kernel.sysctl = {
"vm.swappiness" = 10;
"vm.dirty_ratio" = 3;
};
2024-06-29 17:52:32 +05:30
loader = {
efi.canTouchEfiVariables = true;
2024-07-05 00:45:04 +05:30
systemd-boot = {
enable = true;
configurationLimit = 15;
};
2024-06-29 17:52:32 +05:30
};
};
2024-06-29 23:30:15 +05:30
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
2024-06-29 17:52:32 +05:30
}