2024-07-26 23:07:07 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
2024-06-23 19:58:12 +00:00
|
|
|
inherit (lib) mkIf;
|
2024-04-13 19:15:25 +00:00
|
|
|
deviceType = config.myOptions.device.roles.type;
|
|
|
|
acceptedTypes = ["laptop"];
|
|
|
|
in {
|
2024-04-13 20:18:21 +00:00
|
|
|
imports = [
|
2024-06-23 19:58:12 +00:00
|
|
|
./power-profiles-daemon
|
|
|
|
./upower.nix
|
|
|
|
./acpi.nix
|
2024-04-13 20:18:21 +00:00
|
|
|
];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|