feat(ooksmicro): add cpu min/max freq & battery kernal module

This commit is contained in:
ooks-io 2024-04-07 23:26:06 +12:00
parent c4587ff254
commit a9f0e4317a

View file

@ -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" ];
};
}