mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ inputs, pkgs, config, lib, ... }:
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./../../modules/core
|
|
./../../modules/core/virtualization.nix
|
|
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
|
|
];
|
|
|
|
# Enable fancy boot animations
|
|
boot.plymouth.enable = true;
|
|
|
|
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;
|
|
desktop.enable = true;
|
|
creative.enable = true;
|
|
};
|
|
|
|
services.hardware.bolt.enable = true;
|
|
|
|
hardware.framework.amd-7040.preventWakeOnAC = true;
|
|
networking.hostName = "sakura";
|
|
|
|
boot = {
|
|
kernelParams = [ "mem_sleep_default=deep" "acpi_osi=\"!Windows 2020\"" ];
|
|
kernelModules = ["acpi_call"];
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
loader = {
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
systemd-boot.configurationLimit = 10;
|
|
};
|
|
extraModulePackages = with config.boot.kernelPackages;
|
|
[
|
|
acpi_call
|
|
cpupower
|
|
]
|
|
++ [pkgs.cpupower-gui];
|
|
};
|
|
}
|