about summary refs log tree commit diff
path: root/profiles
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-12 13:39:52 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-12 13:39:52 -0700
commit7ebc556663c2dd462bd1fb4aa3226ec6fcbe23b6 (patch)
treea802b198dc175aaa812f2327720b7f3fb4f0f451 /profiles
parentdocs: some documentation (diff)
downloadworld-7ebc556663c2dd462bd1fb4aa3226ec6fcbe23b6.tar.gz
add modules to manage bluetooth
Diffstat (limited to 'profiles')
-rw-r--r--profiles/bluetooth/default.nix9
-rw-r--r--profiles/default.nix5
2 files changed, 13 insertions, 1 deletions
diff --git a/profiles/bluetooth/default.nix b/profiles/bluetooth/default.nix
new file mode 100644
index 0000000..ffd05b4
--- /dev/null
+++ b/profiles/bluetooth/default.nix
@@ -0,0 +1,9 @@
+{ config, lib, ... }:
+let cfg = config.my.profiles.bluetooth;
+in {
+  options.my.profiles.bluetooth = with lib; {
+    enable = mkEnableOption "bluetooth profile";
+  };
+
+  config = lib.mkIf cfg.enable { my.hardware.bluetooth.enable = true; };
+}
diff --git a/profiles/default.nix b/profiles/default.nix
index 9c0d2f9..d683b58 100644
--- a/profiles/default.nix
+++ b/profiles/default.nix
@@ -1 +1,4 @@
-{ ... }: { imports = [ ./laptop ./gtk ./trusted ./wm ./desktop ./multimedia ]; }
+{ ... }: {
+  imports =
+    [ ./bluetooth ./laptop ./gtk ./trusted ./wm ./desktop ./multimedia ];
+}