nixos-config/hosts/sakura/default.nix

55 lines
1,000 B
Nix
Raw Normal View History

2024-04-13 15:38:53 +02:00
{ pkgs, config, ... }:
2024-04-13 13:43:59 +02:00
{
imports = [
./hardware-configuration.nix
./../../modules/core
];
2024-04-13 15:30:03 +02:00
2024-07-15 07:54:38 +02:00
networking.hostName = "sakura";
2024-04-13 15:30:03 +02:00
environment.systemPackages = with pkgs; [
acpi
2024-04-13 16:28:10 +02:00
brightnessctl
2024-04-13 16:05:23 +02:00
cpupower-gui
2024-04-13 16:28:10 +02:00
powertop
2024-04-13 15:30:03 +02:00
];
2024-04-13 16:24:34 +02:00
services = {
2024-06-21 09:34:10 +02:00
thermald.enable = true;
cpupower-gui.enable = true;
# power-profiles-daemon.enable = true;
2024-04-13 15:30:03 +02:00
upower = {
enable = true;
percentageLow = 20;
percentageCritical = 5;
percentageAction = 3;
criticalPowerAction = "PowerOff";
};
auto-cpufreq = {
enable = true;
settings = {
battery = {
2024-06-21 09:34:10 +02:00
governor = "powersave";
2024-04-13 15:38:53 +02:00
turbo = "auto";
2024-04-13 15:30:03 +02:00
};
charger = {
governor = "performance";
turbo = "auto";
};
};
};
};
boot = {
kernelModules = ["acpi_call"];
2024-04-13 16:04:43 +02:00
extraModulePackages = with config.boot.kernelPackages;
[
acpi_call
cpupower
]
++ [pkgs.cpupower-gui];
2024-04-13 15:30:03 +02:00
};
2024-04-13 15:38:53 +02:00
}