@@ -12,6 +12,7 @@
|
||||
device = "/dev/disk/by-id/nvme-SAMSUNG_MZVL22T0HBLB-00BL2_S64RNE0R602762";
|
||||
})
|
||||
./hardware-configuration.nix
|
||||
../../common/system/configs/tlp
|
||||
../.
|
||||
];
|
||||
|
||||
@@ -19,7 +20,13 @@
|
||||
|
||||
# https://github.com/NixOS/nixos-hardware/tree/master/lenovo/legion/16achg6
|
||||
hardware = {
|
||||
cpu.amd.updateMicrocode = true;
|
||||
enableAllFirmware = true;
|
||||
|
||||
cpu = {
|
||||
cores = 8;
|
||||
threads = 16;
|
||||
amd.updateMicrocode = true;
|
||||
};
|
||||
|
||||
nvidia = {
|
||||
modesetting.enable = true;
|
||||
@@ -45,23 +52,12 @@
|
||||
rocmPackages.clr.icd
|
||||
];
|
||||
};
|
||||
|
||||
enableAllFirmware = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
xserver.videoDrivers = [ "nvidia" ];
|
||||
fstrim.enable = true;
|
||||
tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
DISK_DEVICES = "nvme0n1 nvme1n1";
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
||||
};
|
||||
};
|
||||
tlp.settings.DISK_DEVICES = "nvme0n1 nvme1n1";
|
||||
};
|
||||
|
||||
boot = {
|
||||
|
Reference in New Issue
Block a user