mirror of
https://github.com/ivabus/nixos
synced 2024-11-10 02:25:18 +03:00
22 lines
414 B
Nix
22 lines
414 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) {
|
|
environment.systemPackages = with pkgs; [
|
|
lm_sensors
|
|
];
|
|
|
|
hardware.bluetooth.enable = true;
|
|
services.blueman.enable = true;
|
|
|
|
services.tlp.enable = true;
|
|
services.upower.enable = true;
|
|
};
|
|
}
|