mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds more framework-specific options to sakura
This commit is contained in:
parent
e5b6b88e3d
commit
a4ef411f2c
1 changed files with 12 additions and 1 deletions
|
|
@ -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;
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue