Powermanagement tweaking
This commit is contained in:
parent
1292bde8eb
commit
363e7678c6
5 changed files with 24 additions and 17 deletions
|
@ -25,7 +25,7 @@
|
||||||
base = {
|
base = {
|
||||||
plymouth.enable = true;
|
plymouth.enable = true;
|
||||||
work = false;
|
work = false;
|
||||||
kernel = pkgs.linuxKernel.packages.linux_6_0;
|
kernel = pkgs.linuxKernel.packages.linux_6_1;
|
||||||
udev-rules = {
|
udev-rules = {
|
||||||
qmk = true;
|
qmk = true;
|
||||||
solo2 = true;
|
solo2 = true;
|
||||||
|
@ -262,6 +262,7 @@
|
||||||
programs.ssh.startAgent = true;
|
programs.ssh.startAgent = true;
|
||||||
|
|
||||||
services.envfs.enable = true;
|
services.envfs.enable = true;
|
||||||
|
services.cpupower-gui.enable = true;
|
||||||
|
|
||||||
services.sunshine = {
|
services.sunshine = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -269,11 +270,14 @@
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
powerManagement.powerUpCommands = ''
|
powerManagement = {
|
||||||
${pkgs.powertop}/bin/powertop --auto-tune
|
powerUpCommands = ''
|
||||||
${pkgs.coreutils}/bin/echo 'on' > /sys/bus/usb/devices/5-4.2/power/control # Logitech G502 HERO SE
|
${pkgs.powertop}/bin/powertop --auto-tune
|
||||||
${pkgs.coreutils}/bin/echo 'on' > /sys/bus/usb/devices/5-4.1/power/control # splitkb Kyria rev1
|
${pkgs.coreutils}/bin/echo 'on' > /sys/bus/usb/devices/5-4.2/power/control # Logitech G502 HERO SE
|
||||||
'';
|
${pkgs.coreutils}/bin/echo 'on' > /sys/bus/usb/devices/5-4.1/power/control # splitkb Kyria rev1
|
||||||
|
'';
|
||||||
|
cpuFreqGovernor = "ondemand";
|
||||||
|
};
|
||||||
|
|
||||||
services.nfs.server = {
|
services.nfs.server = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
{ config
|
{ config, lib, ... }: {
|
||||||
, lib
|
|
||||||
, ...
|
|
||||||
}: {
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" "apple-mfi-fastcharge" "zenpower" "nf_nat_ftp" ];
|
boot.kernelModules = [ "kvm-amd" "apple-mfi-fastcharge" "zenpower" "nf_nat_ftp" ];
|
||||||
|
boot.kernelParams = [ "amd_pstate.shared_mem=1" ];
|
||||||
boot.extraModulePackages = [ ] ++
|
boot.extraModulePackages = [ ] ++
|
||||||
(with config.boot.kernelPackages; [ rtl88x2bu zenpower ]);
|
(with config.boot.kernelPackages; [ rtl88x2bu zenpower cpupower ]);
|
||||||
|
|
||||||
boot.extraModprobeConfig = ''
|
|
||||||
options amd-pstate shared_mem=true
|
|
||||||
'';
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-uuid/42065c7e-d0aa-4de8-a913-014cf59d48ac";
|
device = "/dev/disk/by-uuid/42065c7e-d0aa-4de8-a913-014cf59d48ac";
|
||||||
|
@ -32,6 +26,9 @@
|
||||||
# high-resolution display
|
# high-resolution display
|
||||||
hardware.video.hidpi.enable = lib.mkDefault true;
|
hardware.video.hidpi.enable = lib.mkDefault true;
|
||||||
|
|
||||||
# Enable firmware
|
# Enable firmware
|
||||||
hardware.enableAllFirmware = true;
|
hardware.enableAllFirmware = true;
|
||||||
|
|
||||||
|
# i2c support
|
||||||
|
hardware.i2c.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,6 +73,7 @@ in
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
clinfo
|
clinfo
|
||||||
|
config.boot.kernelPackages.cpupower
|
||||||
dig
|
dig
|
||||||
du-dust
|
du-dust
|
||||||
file
|
file
|
||||||
|
@ -82,6 +83,8 @@ in
|
||||||
moreutils
|
moreutils
|
||||||
nix-template
|
nix-template
|
||||||
nvd
|
nvd
|
||||||
|
s-tui
|
||||||
|
stress
|
||||||
usbutils
|
usbutils
|
||||||
xh
|
xh
|
||||||
zip
|
zip
|
||||||
|
|
|
@ -25,7 +25,8 @@ in
|
||||||
users.users.erwin = {
|
users.users.erwin = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
home = "/home/erwin";
|
home = "/home/erwin";
|
||||||
extraGroups = [ "wheel" "adm" "audio" "video" "dialout" "input" ];
|
extraGroups = [ "wheel" "adm" "audio" "video" "dialout" "input" ]
|
||||||
|
++ (optional config.hardware.i2c.enable config.hardware.i2c.group);
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
openssh.authorizedKeys.keyFiles = [
|
openssh.authorizedKeys.keyFiles = [
|
||||||
(pkgs.fetchurl {
|
(pkgs.fetchurl {
|
||||||
|
|
|
@ -238,6 +238,8 @@ in
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
programs.bandwhich.enable = true;
|
programs.bandwhich.enable = true;
|
||||||
|
|
||||||
|
services.ddccontrol.enable = true;
|
||||||
|
|
||||||
programs.wireshark = {
|
programs.wireshark = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.wireshark;
|
package = pkgs.wireshark;
|
||||||
|
|
Loading…
Reference in a new issue