reorganization

This commit is contained in:
Reid 2026-04-22 23:21:23 -07:00
parent 2ad77494b2
commit b6afba390b
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
24 changed files with 144 additions and 128 deletions

View file

@ -2,10 +2,10 @@
with lib;
let
cfg = config.modules.hardware.pipewire;
cfg = config.modules.hardware.audio;
in {
options.modules.hardware.pipewire = {
enable = mkEnableOption "Enable pipewire, a modern audio server";
options.modules.hardware.audio = {
enable = mkEnableOption "Enable audio through pipewire, a modern audio server";
};
config = mkIf cfg.enable {

View file

@ -6,11 +6,15 @@ let
in {
options.modules.hardware.bluetooth = {
enable = mkEnableOption "Enable bluetooth, a short-range communication technology";
powerOnBoot = mkEnableOption {
default = !config.modules.core.laptop;
description = "Power up bluetooth devices on boot";
};
};
config = mkIf cfg.enable {
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
hardware.bluetooth.powerOnBoot = cfg.powerOnBoot;
hardware.bluetooth.settings = {
General = {
Experimental = true;

View file

@ -0,0 +1,6 @@
{ pkgs, ... }:
{
config = {
hardware.enableRedistributableFirmware = true;
};
}

View file

@ -6,7 +6,10 @@ let
in {
options.modules.hardware.networking = {
enable = mkEnableOption "Enable NetworkManager, a daemon for configuring network interfaces";
powersave = mkEnableOption "Enable power saving options over Wi-Fi";
powersave = mkEnableOption {
default = config.modules.core.laptop;
description = "Enable power saving options over Wi-Fi";
};
};
config = mkIf cfg.enable {