2023-08-22 19:39:11 +03:00
|
|
|
{ config, pkgs, lib, ... }:
|
2023-07-16 16:43:13 +03:00
|
|
|
|
2023-09-06 16:10:11 +03:00
|
|
|
let cfg = config.my.laptop;
|
2023-08-22 19:39:11 +03:00
|
|
|
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-10-03 17:15:14 +03:00
|
|
|
networking.wireless.iwd.enable = lib.mkDefault true;
|
2023-09-06 16:10:11 +03:00
|
|
|
environment.systemPackages = with pkgs; [ lm_sensors ];
|
2023-08-02 10:43:52 +03:00
|
|
|
|
2023-10-03 17:15:14 +03:00
|
|
|
hardware.bluetooth.enable = lib.mkDefault true;
|
|
|
|
services.blueman.enable = lib.mkDefault true;
|
2023-08-22 19:39:11 +03:00
|
|
|
|
2023-10-03 17:15:14 +03:00
|
|
|
services.tlp.enable = lib.mkDefault true;
|
|
|
|
services.upower.enable = lib.mkDefault true;
|
2023-08-22 19:39:11 +03:00
|
|
|
};
|
2023-08-02 10:43:52 +03:00
|
|
|
}
|