From d9bc4f15d8adaeccbc494dc33e67a9fafbe4363a Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 31 Dec 2024 07:42:46 -0500 Subject: [PATCH] Add powertop. --- nix/configuration/hosts/odo/default.nix | 1 + nix/configuration/hosts/odo/power_management.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 nix/configuration/hosts/odo/power_management.nix diff --git a/nix/configuration/hosts/odo/default.nix b/nix/configuration/hosts/odo/default.nix index ff78f4a..489143c 100644 --- a/nix/configuration/hosts/odo/default.nix +++ b/nix/configuration/hosts/odo/default.nix @@ -4,6 +4,7 @@ ./hardware-configuration.nix ./disk-config.nix ./optimized_build.nix + ./power_management.nix ]; # Generate with `head -c4 /dev/urandom | od -A none -t x4` diff --git a/nix/configuration/hosts/odo/power_management.nix b/nix/configuration/hosts/odo/power_management.nix new file mode 100644 index 0000000..dff8738 --- /dev/null +++ b/nix/configuration/hosts/odo/power_management.nix @@ -0,0 +1,14 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + imports = [ ]; + + environment.systemPackages = with pkgs; [ + powertop + ]; +}