nixconf/systems/x86_64-linux/mikenike/default.nix

69 lines
1.4 KiB
Nix

{ ... }:
{
imports = [
./hardware.nix
];
config = {
mtxyz = {
platform = {
private = true;
portable = true;
minimal = false;
};
graphical.desktop = "kde";
};
hardware.bluetooth = {
enable = true; # enables support for Bluetooth
powerOnBoot = true; # powers up the default Bluetooth controller on boot
settings = {
General = {
Experimental = true;
};
};
};
services.tlp.settings = {
START_CHARGE_THRESH_BAT0 = 70;
STOP_CHARGE_THRESH_BAT0 = 80;
START_CHARGE_THRESH_BAT1 = 70;
STOP_CHARGE_THRESH_BAT1 = 80;
};
# 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;
};
programs.gamemode = {
enable = true;
enableRenice = true;
settings = {
general.renice = 10;
gpu = {
apply_gpu_optimizations="accept-responsibility";
nv_powermizer_mode=2;
gpu_device=1;
};
};
};
};
}