nixdots/system/roles/laptop/power/default.nix
2024-07-27 01:07:07 +02:00

21 lines
350 B
Nix

{
pkgs,
lib,
config,
...
}: let
inherit (lib) mkIf;
deviceType = config.myOptions.device.roles.type;
acceptedTypes = ["laptop"];
in {
imports = [
./power-profiles-daemon
./upower.nix
./acpi.nix
];
config = mkIf (builtins.elem deviceType acceptedTypes) {
environment.systemPackages = with pkgs; [powertop];
};
}