modules: Move bluetooth, sound and wlan modules into the services namespace

This commit is contained in:
SebastianStork 2025-09-03 18:49:55 +02:00
parent e914990eaf
commit b82eeb8595
5 changed files with 10 additions and 12 deletions

View file

@ -1,8 +1,8 @@
{ config, lib, ... }:
{
options.custom.bluetooth.enable = lib.mkEnableOption "";
options.custom.services.bluetooth.enable = lib.mkEnableOption "";
config = lib.mkIf config.custom.bluetooth.enable {
config = lib.mkIf config.custom.services.bluetooth.enable {
hardware = {
bluetooth = {
enable = true;

View file

@ -1,8 +1,8 @@
{ config, lib, ... }:
{
options.custom.sound.enable = lib.mkEnableOption "";
options.custom.services.sound.enable = lib.mkEnableOption "";
config = lib.mkIf config.custom.sound.enable {
config = lib.mkIf config.custom.services.sound.enable {
security.rtkit.enable = true;
services.pipewire = {
enable = true;

View file

@ -5,10 +5,10 @@
...
}:
let
cfg = config.custom.wifi;
cfg = config.custom.services.wlan;
in
{
options.custom.wifi = {
options.custom.services.wlan = {
enable = lib.mkEnableOption "";
networks = lib.mkOption {
type = lib.types.listOf lib.types.nonEmptyStr;