mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
feat: move to laptop role for sakura
This commit is contained in:
parent
e8d7fd99eb
commit
cb8cd9a5ea
1 changed files with 3 additions and 32 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, lib, pkgs, config, ... }:
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
@ -9,12 +9,7 @@
|
||||||
hardware.framework.amd-7040.preventWakeOnAC = true;
|
hardware.framework.amd-7040.preventWakeOnAC = true;
|
||||||
networking.hostName = "sakura";
|
networking.hostName = "sakura";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
laptop = true;
|
||||||
acpi
|
|
||||||
brightnessctl
|
|
||||||
cpupower-gui
|
|
||||||
powertop
|
|
||||||
];
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
thermald.enable = true;
|
thermald.enable = true;
|
||||||
|
|
@ -28,29 +23,5 @@
|
||||||
percentageAction = 3;
|
percentageAction = 3;
|
||||||
criticalPowerAction = "PowerOff";
|
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];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue