From fd9ed4e5e826674131f4887853150d3795dd222f Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 5 Jul 2024 16:25:36 +0200 Subject: refactor(hosts): Also move bluetooth and graphics to separate modules --- modules/system/bluetooth/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/system/bluetooth/default.nix (limited to 'modules/system/bluetooth') diff --git a/modules/system/bluetooth/default.nix b/modules/system/bluetooth/default.nix new file mode 100644 index 00000000..bf1c6a90 --- /dev/null +++ b/modules/system/bluetooth/default.nix @@ -0,0 +1,20 @@ +{ + config, + lib, + ... +}: let + cfg = config.soispha.bluetooth; +in { + options.soispha.bluetooth = { + enable = lib.mkEnableOption "an integrated bluetooth setup."; + }; + + config = lib.mkIf cfg.enable { + hardware = { + bluetooth = { + enable = true; + powerOnBoot = !config.soispha.laptop.enable; + }; + }; + }; +} -- cgit 1.4.1