nixos/common/laptop.nix
Ivan Bushchik f916ffb2b4
Minor changes
Untested VF2 config, basic "user", option to enable users, option to enable git, basic graphics role, unfinished `router` role, global features

Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2023-10-03 22:25:40 +03:00

19 lines
515 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 = lib.mkDefault true;
environment.systemPackages = with pkgs; [ lm_sensors ];
hardware.bluetooth.enable = lib.mkDefault true;
services.blueman.enable = lib.mkDefault true;
services.tlp.enable = lib.mkDefault true;
services.upower.enable = lib.mkDefault true;
};
}