2024-01-18 01:32:15 +00:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware.nix
|
|
|
|
];
|
|
|
|
|
2024-03-18 19:51:56 +00:00
|
|
|
config = {
|
|
|
|
mtxyz = {
|
|
|
|
platform = {
|
|
|
|
private = true;
|
|
|
|
portable = true;
|
|
|
|
minimal = false;
|
2024-01-18 01:32:15 +00:00
|
|
|
};
|
2024-03-20 15:29:14 +00:00
|
|
|
graphical.desktop = "kde";
|
2024-01-18 01:32:15 +00:00
|
|
|
};
|
|
|
|
|
2024-03-20 23:08:37 +00:00
|
|
|
hardware.bluetooth = {
|
|
|
|
enable = true; # enables support for Bluetooth
|
|
|
|
powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
|
|
|
settings = {
|
|
|
|
General = {
|
|
|
|
Experimental = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-03-18 19:51:56 +00:00
|
|
|
services.tlp.settings = {
|
|
|
|
START_CHARGE_THRESH_BAT0 = 70;
|
|
|
|
STOP_CHARGE_THRESH_BAT0 = 80;
|
|
|
|
START_CHARGE_THRESH_BAT1 = 70;
|
|
|
|
STOP_CHARGE_THRESH_BAT1 = 80;
|
|
|
|
};
|
2024-01-18 01:32:15 +00:00
|
|
|
|
2024-03-18 19:51:56 +00:00
|
|
|
# enable opengl
|
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware.nvidia = {
|
|
|
|
# Prime is needed for optimus GPU
|
|
|
|
prime = {
|
|
|
|
offload = {
|
|
|
|
enable = true;
|
|
|
|
enableOffloadCmd = true;
|
|
|
|
};
|
|
|
|
intelBusId = "PCI:0:2:0";
|
|
|
|
nvidiaBusId = "PCI:2:0:0";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Modesetting is needed for most Wayland compositors
|
|
|
|
modesetting.enable = true;
|
|
|
|
};
|
2024-05-17 21:11:31 +00:00
|
|
|
|
2024-03-18 19:51:56 +00:00
|
|
|
programs.gamemode = {
|
|
|
|
enable = true;
|
|
|
|
enableRenice = true;
|
|
|
|
settings = {
|
|
|
|
general.renice = 10;
|
|
|
|
gpu = {
|
|
|
|
apply_gpu_optimizations="accept-responsibility";
|
|
|
|
nv_powermizer_mode=2;
|
|
|
|
gpu_device=1;
|
|
|
|
};
|
2024-01-18 01:32:15 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|