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 = [
|
imports = [
|
||||||
inputs.hardware.nixosModules.gpd-micropc
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../profiles
|
../../profiles
|
||||||
];
|
];
|
||||||
|
|
@ -13,6 +12,17 @@
|
||||||
ooks.enable = true;
|
ooks.enable = true;
|
||||||
shell.fish.enable = true;
|
shell.fish.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemModules.laptop.power = {
|
||||||
|
powersave = {
|
||||||
|
minFreq = 800;
|
||||||
|
maxFreq = 1600;
|
||||||
|
};
|
||||||
|
performance = {
|
||||||
|
minFreq = 1100;
|
||||||
|
maxFreq = 2600;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "ooksmicro";
|
hostName = "ooksmicro";
|
||||||
|
|
@ -20,7 +30,9 @@
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||||
|
# need this due to
|
||||||
kernelParams = [ "fbcon=rotate:1" ];
|
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