nixdots/system/roles/laptop/power/default.nix

21 lines
350 B
Nix
Raw Normal View History

2024-07-26 23:07:07 +00:00
{
pkgs,
lib,
config,
...
}: let
inherit (lib) mkIf;
2024-04-13 19:15:25 +00:00
deviceType = config.myOptions.device.roles.type;
acceptedTypes = ["laptop"];
in {
imports = [
./power-profiles-daemon
./upower.nix
./acpi.nix
];
2024-04-13 19:15:25 +00:00
config = mkIf (builtins.elem deviceType acceptedTypes) {
2024-07-26 23:07:07 +00:00
environment.systemPackages = with pkgs; [powertop];
2024-04-13 18:56:51 +00:00
};
}