diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-07-05 16:25:36 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-07-05 19:43:07 +0200 |
commit | fd9ed4e5e826674131f4887853150d3795dd222f (patch) | |
tree | 17998feba0df8ff1ab2f2c4a8bcac270a37ceda6 /modules/system/bluetooth | |
parent | build(treewide): Update (diff) | |
download | nixos-config-fd9ed4e5e826674131f4887853150d3795dd222f.zip |
refactor(hosts): Also move bluetooth and graphics to separate modules
Diffstat (limited to 'modules/system/bluetooth')
-rw-r--r-- | modules/system/bluetooth/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
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; + }; + }; + }; +} |