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