nixos-config/hosts/sakura/default.nix

35 lines
834 B
Nix
Raw Normal View History

{ inputs, pkgs, config, lib, ... }:
2024-04-13 13:43:59 +02:00
{
imports = [
./hardware-configuration.nix
./../../modules/core
2024-10-21 15:40:49 +02:00
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
2024-04-13 13:43:59 +02:00
];
2024-10-21 22:58:12 +02:00
powerManagement = {
enable = true;
# powertop.enable = true;
cpuFreqGovernor = lib.mkDefault "ondemand";
};
environment.systemPackages = with pkgs; [
fwupd # Update firmware for Framework Laptop 13
];
2024-10-21 22:58:12 +02:00
liv.laptop.enable = true;
2024-04-13 15:30:03 +02:00
2024-10-21 15:40:49 +02:00
hardware.framework.amd-7040.preventWakeOnAC = true;
2024-07-15 07:54:38 +02:00
networking.hostName = "sakura";
2024-10-21 22:58:12 +02:00
boot = {
2024-11-18 15:21:57 +01:00
kernelParams = [ "mem_sleep_default=deep acpi_osi='!Windows 2020'" ];
2024-10-21 22:58:12 +02:00
kernelModules = ["acpi_call"];
extraModulePackages = with config.boot.kernelPackages;
[
acpi_call
cpupower
]
++ [pkgs.cpupower-gui];
2024-04-13 15:30:03 +02:00
};
2024-04-13 15:38:53 +02:00
}