mirror of
https://github.com/ivabus/nixos
synced 2024-09-20 00:30:48 +03:00
Ivan Bushchik
4afe642684
NOTE: any config other than stella will not be working for a while Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
23 lines
429 B
Nix
23 lines
429 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; [
|
|
powertop
|
|
lm_sensors
|
|
];
|
|
|
|
hardware.bluetooth.enable = true;
|
|
services.blueman.enable = true;
|
|
|
|
services.tlp.enable = true;
|
|
services.upower.enable = true;
|
|
};
|
|
}
|