power settings for server
This commit is contained in:
1 parent
868fa7cdd7
commit
c9b15dea59
3 files changed
+23
-3
No files matched your search
@@ -21,6 +21,7 @@
|
||||
./nix-serve.nix
|
||||
./onlyoffice.nix
|
||||
./postgresql.nix
|
||||
./power.nix
|
||||
./samba.nix
|
||||
./step-ca.nix
|
||||
./syncthing.nix
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
services = {
|
||||
tuned = {
|
||||
enable = true;
|
||||
};
|
||||
auto-cpufreq.enable = false;
|
||||
power-profiles-daemon.enable = lib.mkForce false;
|
||||
throttled.enable = false;
|
||||
};
|
||||
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
cpupower-gui
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user