mirror of
https://github.com/ivabus/nixos
synced 2024-11-14 04:25:07 +03:00
Ivan Bushchik
f916ffb2b4
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>
19 lines
515 B
Nix
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;
|
|
};
|
|
}
|