mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: move lots over to laptop role
This commit is contained in:
parent
751f826a07
commit
7d4ca49605
1 changed files with 11 additions and 15 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, ... }:
|
{ inputs, pkgs, config, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
@ -6,22 +6,18 @@
|
||||||
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
|
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
|
||||||
];
|
];
|
||||||
|
|
||||||
|
liv.laptop.enable = true;
|
||||||
|
|
||||||
hardware.framework.amd-7040.preventWakeOnAC = true;
|
hardware.framework.amd-7040.preventWakeOnAC = true;
|
||||||
networking.hostName = "sakura";
|
networking.hostName = "sakura";
|
||||||
|
|
||||||
liv.laptop = true;
|
boot = {
|
||||||
|
kernelModules = ["acpi_call"];
|
||||||
services = {
|
extraModulePackages = with config.boot.kernelPackages;
|
||||||
thermald.enable = true;
|
[
|
||||||
cpupower-gui.enable = true;
|
acpi_call
|
||||||
# power-profiles-daemon.enable = true;
|
cpupower
|
||||||
|
]
|
||||||
upower = {
|
++ [pkgs.cpupower-gui];
|
||||||
enable = true;
|
|
||||||
percentageLow = 20;
|
|
||||||
percentageCritical = 5;
|
|
||||||
percentageAction = 3;
|
|
||||||
criticalPowerAction = "PowerOff";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue