flake rewiritte

This commit is contained in:
jopejoe1 2023-12-29 16:43:40 +01:00
parent f206e94425
commit a0d6ca6267
33 changed files with 1257 additions and 1070 deletions

View file

@ -1,7 +1,15 @@
{ ... }:
{ config, lib, pkgs, ... }:
let
cfg = config.jopejoe1.bluetooth;
in
{
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
}
options.jopejoe1.bluetooth = {
enable = lib.mkEnableOption "Enable Bluetooth";
};
config = lib.mkIf cfg.enable {
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
};
}