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

36 lines
772 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/8e26be6b-4dff-4c85-9ab8-4765e1b2b581";
networking.hostName = "seele"; # Define your hostname.
}