-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
44 lines (37 loc) · 1.03 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ 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"];
extraModulePackages = with config.boot.kernelPackages;
[
acpi_call
cpupower
]
++ [pkgs.cpupower-gui];
};
}