Added hardware profiel for wifi
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.hardware.bluetooth;
|
||||
in
|
||||
{
|
||||
options.my.hardware.bluetooth = with lib; {
|
||||
enable = mkEnableOption "bluetooth configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
package = pkgs.bluezFull;
|
||||
settings = {
|
||||
General = {
|
||||
Enable = "Source,Sink,Media,Socket";
|
||||
};
|
||||
};
|
||||
};
|
||||
services.blueman.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
sony-headphones-client
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
# Hardware-related modules
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./bluetooth
|
||||
#./debug
|
||||
#./drive-monitor
|
||||
#./firmware
|
||||
#./graphics
|
||||
#./keychron
|
||||
#./yubikey
|
||||
./sound
|
||||
./thunderbolt
|
||||
./wifi
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.hardware.wifi;
|
||||
in
|
||||
{
|
||||
options.my.hardware.wifi = with lib; {
|
||||
enable = mkEnableOption "wifi configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
hardware.wifi = {
|
||||
enable = true;
|
||||
package = pkgs.rtw89-firmware;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user