nixos-config/hosts/sakura/default.nix

62 lines
1.2 KiB
Nix
Raw Normal View History

2025-04-16 10:31:45 +02:00
{
inputs,
pkgs,
config,
lib,
...
}:
2024-04-13 13:43:59 +02:00
{
imports = [
./hardware-configuration.nix
./../../modules/core
2024-12-23 22:39:47 +01:00
./../../modules/core/virtualization.nix
2024-10-21 15:40:49 +02:00
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
2024-04-13 13:43:59 +02:00
];
2025-01-10 16:18:17 +01:00
# Enable fancy boot animations
boot.plymouth.enable = true;
2025-04-16 10:31:45 +02:00
powerManagement = {
enable = true;
# powertop.enable = true;
cpuFreqGovernor = lib.mkDefault "ondemand";
};
environment.systemPackages = with pkgs; [
2025-04-16 10:31:45 +02:00
fwupd # Update firmware for Framework Laptop 13
];
2025-04-16 10:31:45 +02:00
liv = {
2024-12-23 22:39:47 +01:00
laptop.enable = true;
2025-04-16 10:31:45 +02:00
desktop.enable = false;
2024-12-23 22:39:47 +01:00
creative.enable = true;
amdgpu.enable = true;
2024-12-23 22:39:47 +01:00
};
2024-04-13 15:30:03 +02:00
services.hardware.bolt.enable = true;
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 = {
2025-04-16 10:31:45 +02:00
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;
};
2025-04-16 10:31:45 +02:00
extraModulePackages =
with config.boot.kernelPackages;
2024-10-21 22:58:12 +02:00
[
acpi_call
cpupower
]
2025-04-16 10:31:45 +02:00
++ [ pkgs.cpupower-gui ];
2024-04-13 15:30:03 +02:00
};
2024-04-13 15:38:53 +02:00
}