feat(affogato): use upstream nixos-hardware model, enable power-profiles-daemon, add repo-local pkgs overlay

This commit is contained in:
2025-03-04 19:23:28 +01:00
parent fef153c9d8
commit b874613227
6 changed files with 36 additions and 12 deletions

View File

@ -1,5 +1,6 @@
{ pkgs, ... }: {
{ inputs, pkgs, ... }: {
imports = [
inputs.nixos-hardware.nixosModules.chuwi-minibook-x
./hardware-configuration.nix
./n100.nix
../../profiles/base
@ -14,12 +15,10 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
#boot.kernelPackages = pkgs.linuxPackages_6_6;
boot.kernelPackages = pkgs.linuxPackages_6_13;
boot.kernelParams = [
"fbcon=rotate:1"
# disable panel self refresh for i915
"i915.enable_psr=0"
#"i915.enable_psr=0"
# set max cstate to 2 (suspend?)
# "intel_idle.max_cstate=2"
"nvme.noacpi=1"
@ -52,6 +51,7 @@
services.avahi.enable = true;
services.tailscale.enable = true;
services.blueman.enable = true;
services.power-profiles-daemon.enable = true;
# TODO: delete this later
system.stateVersion = "23.05"; # Did you read the comment?