feat(ooksmicro): add cpu min/max freq & battery kernal module
This commit is contained in:
parent
c4587ff254
commit
a9f0e4317a
1 changed files with 15 additions and 3 deletions
|
|
@ -1,8 +1,7 @@
|
|||
{ config, inputs, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.hardware.nixosModules.gpd-micropc
|
||||
./hardware-configuration.nix
|
||||
../../profiles
|
||||
];
|
||||
|
|
@ -13,6 +12,17 @@
|
|||
ooks.enable = true;
|
||||
shell.fish.enable = true;
|
||||
};
|
||||
|
||||
systemModules.laptop.power = {
|
||||
powersave = {
|
||||
minFreq = 800;
|
||||
maxFreq = 1600;
|
||||
};
|
||||
performance = {
|
||||
minFreq = 1100;
|
||||
maxFreq = 2600;
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "ooksmicro";
|
||||
|
|
@ -20,7 +30,9 @@
|
|||
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||
# need this due to
|
||||
kernelParams = [ "fbcon=rotate:1" ];
|
||||
|
||||
# required for keyboard to work during boot
|
||||
initrd.availableKernelModules = [ "battery" ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue