mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 06:29:41 +00:00
22 lines
368 B
Nix
22 lines
368 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
|
|
./systemd.nix
|
|
];
|
|
|
|
config = mkIf (builtins.elem deviceType acceptedTypes) {
|
|
environment.systemPackages = with pkgs; [powertop];
|
|
};
|
|
}
|