2023-08-22 19:39:11 +03:00
|
|
|
{ config, pkgs, lib, ... }:
|
2023-07-16 16:43:13 +03:00
|
|
|
|
2023-08-22 19:39:11 +03:00
|
|
|
let
|
|
|
|
cfg = config.my.laptop;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
my.laptop.enable = lib.mkEnableOption "Laptop-specific configuration";
|
|
|
|
};
|
2023-07-28 15:39:50 +03:00
|
|
|
|
2023-08-22 19:39:11 +03:00
|
|
|
config = lib.mkIf (cfg.enable) {
|
2023-08-23 10:36:32 +03:00
|
|
|
networking.wireless.iwd.enable = true;
|
2023-08-22 19:39:11 +03:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
lm_sensors
|
|
|
|
];
|
2023-08-02 10:43:52 +03:00
|
|
|
|
2023-08-22 19:39:11 +03:00
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
services.blueman.enable = true;
|
|
|
|
|
|
|
|
services.tlp.enable = true;
|
|
|
|
services.upower.enable = true;
|
|
|
|
};
|
2023-08-02 10:43:52 +03:00
|
|
|
}
|