power settings for server

This commit is contained in:
2026-08-04 11:26:31 +03:00
parent 868fa7cdd7
commit c9b15dea59
3 changed files with 23 additions and 3 deletions
-3
View File
@@ -83,10 +83,7 @@ let
];
services = {
power-profiles-daemon.enable = lib.mkForce false;
earlyoom.enable = true;
auto-cpufreq.enable = true;
throttled.enable = false;
journald = {
extraConfig = ''
SystemMaxUse=512M
+1
View File
@@ -21,6 +21,7 @@
./nix-serve.nix
./onlyoffice.nix
./postgresql.nix
./power.nix
./samba.nix
./step-ca.nix
./syncthing.nix
+22
View File
@@ -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
];
};
}