nixos-config/hosts/sakura/default.nix

56 lines
1.1 KiB
Nix

{ inputs, lib, pkgs, config, ... }:
{
imports = [
./hardware-configuration.nix
./../../modules/core
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
];
hardware.framework.amd-7040.preventWakeOnAC = true;
networking.hostName = "sakura";
environment.systemPackages = with pkgs; [
acpi
brightnessctl
cpupower-gui
powertop
];
services = {
thermald.enable = true;
cpupower-gui.enable = true;
# power-profiles-daemon.enable = true;
upower = {
enable = true;
percentageLow = 20;
percentageCritical = 5;
percentageAction = 3;
criticalPowerAction = "PowerOff";
};
auto-cpufreq = {
enable = false;
settings = {
battery = {
governor = "powersave";
turbo = "auto";
};
charger = {
governor = "performance";
turbo = "auto";
};
};
};
};
boot = {
kernelModules = ["acpi_call"];
extraModulePackages = with config.boot.kernelPackages;
[
acpi_call
cpupower
]
++ [pkgs.cpupower-gui];
};
}