mirror of
https://github.com/ivabus/nixos
synced 2024-11-10 02:25:18 +03:00
20 lines
445 B
Nix
20 lines
445 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let cfg = config.my.laptop;
|
|
in {
|
|
options = {
|
|
my.laptop.enable = lib.mkEnableOption "Laptop-specific configuration";
|
|
};
|
|
|
|
config = lib.mkIf (cfg.enable) {
|
|
networking.wireless.iwd.enable = true;
|
|
environment.systemPackages = with pkgs; [ lm_sensors ];
|
|
|
|
hardware.bluetooth.enable = true;
|
|
services.blueman.enable = true;
|
|
|
|
services.tlp.enable = true;
|
|
services.upower.enable = true;
|
|
};
|
|
}
|