Skip to content

Commit

Permalink
Move autofreq & upower to sigmachine
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Sep 14, 2024
1 parent d6408e9 commit 812d9fa
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
22 changes: 20 additions & 2 deletions system/_sigmachine.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{ config, pkgs, ... }: {
boot.initrd.kernelModules = [ "amdgpu" ];

services.xserver.videoDrivers = [ "nvidia" ];

hardware = {
nvidia = {
modesetting.enable = true;
Expand Down Expand Up @@ -38,6 +36,26 @@
};
};

services = {
auto-cpufreq = {
enable = true;
settings = {
battery = {
governor = "powersave";
turbo = "never";
};

charger = {
governor = "performance";
turbo = "auto";
};
};
};

xserver.videoDrivers = [ "nvidia" ];
upower.enable = true;
};

system = {
copySystemConfiguration = false;
stateVersion = "22.11";
Expand Down
17 changes: 0 additions & 17 deletions system/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,6 @@

security.rtkit.enable = true;
services = {
auto-cpufreq = {
enable = true;
settings = {
battery = {
governor = "powersave";
turbo = "never";
};

charger = {
governor = "performance";
turbo = "auto";
};
};
};

libinput = {
enable = true;
mouse.accelProfile = "flat";
Expand Down Expand Up @@ -157,8 +142,6 @@
};
windowManager.qtile.enable = true;
};

upower.enable = true;
};

users.users.${username} = {
Expand Down

0 comments on commit 812d9fa

Please sign in to comment.