diff options
| author | adikro <adikro@disroot.org> | 2026-01-08 20:40:35 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-01-08 20:40:35 +0100 |
| commit | 5d0f2554cf56459b0afd27d3ed437a7fa50602a9 (patch) | |
| tree | bfaa6a1f79e942f54db2bc76cb47a8771b9c8f3e /os/srv/bluetooth.nix | |
| parent | 5b074f906a954ac25805ce6cbcbf7568cd97dafc (diff) | |
some modularization
Diffstat (limited to 'os/srv/bluetooth.nix')
| -rw-r--r-- | os/srv/bluetooth.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/os/srv/bluetooth.nix b/os/srv/bluetooth.nix new file mode 100644 index 0000000..a803c55 --- /dev/null +++ b/os/srv/bluetooth.nix @@ -0,0 +1,14 @@ +{ config, lib, ... }: +let + cfg = config.os.srv.bluetooth; +in +{ + options.os.srv.bluetooth.enable = lib.mkEnableOption "enables bluetooth support"; + config = lib.mkIf cfg.enable { + services.blueman.enable = true; + hardware.bluetooth = { + enable = true; + powerOnBoot = true; + }; + }; +} |
