nixos/common/laptop.nix

23 lines
457 B
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2023-07-16 16:43:13 +03:00
let
cfg = config.my.laptop;
in {
options = {
my.laptop.enable = lib.mkEnableOption "Laptop-specific configuration";
};
2023-07-28 15:39:50 +03:00
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;
};
}