mirror of
https://github.com/Username404-59/Dotfiles-NixOS.git
synced 2026-07-03 12:58:07 +02:00
32 lines
660 B
Nix
32 lines
660 B
Nix
{ config, ...}:
|
|
|
|
{
|
|
boot.extraModulePackages = with config.boot.kernelPackages; [];
|
|
|
|
boot.kernelModules = [];
|
|
|
|
boot.blacklistedKernelModules = [];
|
|
|
|
powerManagement.cpuFreqGovernor = "schedutil";
|
|
|
|
services.auto-cpufreq = {
|
|
enable = true;
|
|
settings = {
|
|
charger.turbo = "auto";
|
|
battery.turbo = "never";
|
|
};
|
|
};
|
|
|
|
services.upower.enable = true;
|
|
|
|
# Thunderbolt automatic authorization etc
|
|
services.udev.extraRules = ''
|
|
ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1"
|
|
'';
|
|
|
|
# NVIDIA drivers
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
networking.hostName = "lizard-portable";
|
|
}
|