nixos/common/laptop.nix
Ivan Bushchik f9d23bbb12
Add DoT, networkd
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-08-23 10:36:32 +03:00

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;
};
}