mirror of
https://github.com/ivabus/nixos
synced 2024-11-24 09:25:06 +03:00
22 lines
457 B
Nix
22 lines
457 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;
|
|
};
|
|
}
|