nixos/modules/hosts/seele/configuration.nix
2026-09-01 16:09:59 +02:00

35 lines
771 B
Nix

{
config,
lib,
pkgs,
...
}:
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
../base/configuration.nix
];
services.tlp = {
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 60;
};
};
systemd.sleep.settings.Sleep = {
HibernateDelaySec = "1h";
};
boot.resumeDevice = "/dev/disk/by-uuid/db947ed5-ae76-4cd6-8430-5fd4d3efab5f";
networking.hostName = "seele"; # Define your hostname.
}