Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

steamdeck: Enable bluetooth #269

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions modules/steamdeck/bluetooth.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ config, lib, pkgs, ... }:

let
inherit (lib)
mkIf
mkMerge
mkOption
types
;
cfg = config.jovian.devices.steamdeck;
in
{
options = {
jovian.devices.steamdeck = {
enableBluetooth = mkOption {
type = types.bool;
default = cfg.enable;
defaultText = lib.literalExpression "config.jovian.devices.steamdeck.enable";
description = ''
Whether to enable bluetooth.
'';
};
};
};
config = mkMerge [
(mkIf (cfg.enableBluetooth) {
hardware.bluetooth.enable = true;
})
];
}
1 change: 1 addition & 0 deletions modules/steamdeck/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ let
in
{
imports = [
./bluetooth.nix
./controller.nix
./fan-control.nix
./firmware.nix
Expand Down