feat: adds more framework-specific options to sakura

This commit is contained in:
Ahwx 2024-11-14 00:43:39 +01:00
parent e5b6b88e3d
commit a4ef411f2c

View file

@ -1,4 +1,4 @@
{ inputs, pkgs, config, ... }: { inputs, pkgs, config, lib, ... }:
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
@ -6,12 +6,23 @@
inputs.nixos-hardware.nixosModules.framework-13-7040-amd inputs.nixos-hardware.nixosModules.framework-13-7040-amd
]; ];
powerManagement = {
enable = true;
# powertop.enable = true;
cpuFreqGovernor = lib.mkDefault "ondemand";
};
environment.systemPackages = with pkgs; [
fwupd # Update firmware for Framework Laptop 13
];
liv.laptop.enable = true; liv.laptop.enable = true;
hardware.framework.amd-7040.preventWakeOnAC = true; hardware.framework.amd-7040.preventWakeOnAC = true;
networking.hostName = "sakura"; networking.hostName = "sakura";
boot = { boot = {
kernelParams = [ "mem_sleep_default=deep" ];
kernelModules = ["acpi_call"]; kernelModules = ["acpi_call"];
extraModulePackages = with config.boot.kernelPackages; extraModulePackages = with config.boot.kernelPackages;
[ [