Migrated from import based to config based

This commit is contained in:
2024-12-23 17:03:36 +01:00
parent c1b12746f5
commit 5edd8b1e01
36 changed files with 503 additions and 308 deletions

View File

@@ -1,15 +1,30 @@
{ pkgs, ... }:
{ config, lib, ... }:
{
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
};
with lib;
let
cfg = config.settings.hardware.bluetooth;
in {
options = {
settings.hardware.bluetooth.enable = lib.mkOption {
type = lib.types.bool;
description = ''
Enable bluetooth
'';
};
};
services.blueman.enable = true;
config = mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
};
};
};
services.blueman.enable = true;
};
}