diff options
author | Alan Pearce | 2021-01-12 17:01:45 +0100 |
---|---|---|
committer | Alan Pearce | 2021-01-12 17:01:45 +0100 |
commit | 82eac6549fe01ecd4b8aec799f1dba37eb253ecd (patch) | |
tree | d452aa54421c1ec547effc951c4f71f3b6f382f1 /system/settings/hardware/laptop.nix | |
parent | 2ad5213fbb065d59e8435669f71b054bd9fd52f5 (diff) | |
download | nixfiles-82eac6549fe01ecd4b8aec799f1dba37eb253ecd.tar.lz nixfiles-82eac6549fe01ecd4b8aec799f1dba37eb253ecd.tar.zst nixfiles-82eac6549fe01ecd4b8aec799f1dba37eb253ecd.zip |
Extract bluetooth settings from laptop module
Diffstat (limited to 'system/settings/hardware/laptop.nix')
-rw-r--r-- | system/settings/hardware/laptop.nix | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/system/settings/hardware/laptop.nix b/system/settings/hardware/laptop.nix index 24e7db86..1ea90628 100644 --- a/system/settings/hardware/laptop.nix +++ b/system/settings/hardware/laptop.nix @@ -1,23 +1,14 @@ { config, pkgs, lib, ... }: -{ boot.kernelModules = [ "coretemp" ]; +{ + imports = [ + ./bluetooth.nix + ./bluetooth-audio.nix + ]; - hardware = { - bluetooth = { - enable = true; - powerOnBoot = false; - package = pkgs.bluezFull; - }; - pulseaudio = { - extraModules = with pkgs; [ - pulseaudio-modules-bt - ]; - }; - }; - systemd.services.bluetooth.restartIfChanged = false; + boot.kernelModules = [ "coretemp" ]; environment.systemPackages = with pkgs; [ - bluez-tools powerstat powertop @@ -67,10 +58,6 @@ ''; }; - services.blueman = { - enable = true; - }; - services.xserver = { libinput = { enable = lib.mkDefault true; |