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