Add powertop

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-09-30 12:53:24 +04:00
parent 41b417309d
commit 7386cd2f54
3 changed files with 28 additions and 3 deletions

View File

@@ -31,6 +31,7 @@
../common/system/configs/ntp
../common/system/configs/pipewire
../common/system/configs/plymouth
../common/system/configs/powertop
../common/system/configs/printing
../common/system/configs/ranger
../common/system/configs/sops
@@ -47,6 +48,10 @@
./users/nick.nix
];
networking.hostName = "eirene";
i18n.defaultLocale = "en_US.UTF-8";
sops.defaultSopsFile = ./secrets/secrets.yaml;
# https://github.com/NixOS/nixos-hardware/tree/master/lenovo/legion/16achg6
hardware = {
enableAllFirmware = true;
@@ -83,9 +88,12 @@
};
};
networking.hostName = "eirene";
i18n.defaultLocale = "en_US.UTF-8";
sops.defaultSopsFile = ./secrets/secrets.yaml;
powerManagement = {
enable = true;
powertop.enable = true;
};
systemd.services.powertop.postStart = builtins.readFile ./scripts/mouse.sh;
services = {
xserver.videoDrivers = [ "nvidia" ];