From 1598f3d257f1101fcb32f08923dd8706616086b4 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Fri, 21 Jun 2019 11:17:33 +0200 Subject: [PATCH 1/2] nixos/bluetooth: don't install obex tools by default --- nixos/doc/manual/release-notes/rl-2003.xml | 7 +++++++ nixos/modules/services/hardware/bluetooth.nix | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/doc/manual/release-notes/rl-2003.xml b/nixos/doc/manual/release-notes/rl-2003.xml index 2a5064c71b0..b13aa1ba3dc 100644 --- a/nixos/doc/manual/release-notes/rl-2003.xml +++ b/nixos/doc/manual/release-notes/rl-2003.xml @@ -199,6 +199,13 @@ This has led to drastically reduced closed sizes for some rust crates since development dependencies are now in the lib output. + + + The packages openobex and obexftp + are no loger installed when enabling bluetooth via + . + + diff --git a/nixos/modules/services/hardware/bluetooth.nix b/nixos/modules/services/hardware/bluetooth.nix index 7b13beea1ca..11d67418a31 100644 --- a/nixos/modules/services/hardware/bluetooth.nix +++ b/nixos/modules/services/hardware/bluetooth.nix @@ -72,7 +72,7 @@ in { }; }; - environment.systemPackages = [ bluez-bluetooth pkgs.openobex pkgs.obexftp ]; + environment.systemPackages = [ bluez-bluetooth ]; environment.etc = singleton { source = pkgs.writeText "main.conf" (generators.toINI { } cfg.config + optionalString (cfg.extraConfig != null) cfg.extraConfig); From 40d4c3c93e2a02efa79c00e9efbdf94d9e11cc38 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sun, 1 Dec 2019 22:52:58 +0100 Subject: [PATCH 2/2] nixos/plasma5: install obex tools when bluetooth is enabled --- nixos/modules/services/x11/desktop-managers/plasma5.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/x11/desktop-managers/plasma5.nix b/nixos/modules/services/x11/desktop-managers/plasma5.nix index da8bdcb78c4..56015874723 100644 --- a/nixos/modules/services/x11/desktop-managers/plasma5.nix +++ b/nixos/modules/services/x11/desktop-managers/plasma5.nix @@ -169,7 +169,7 @@ in ++ lib.optional (cfg.phononBackend == "vlc") libsForQt5.phonon-backend-vlc # Optional hardware support features - ++ lib.optionals config.hardware.bluetooth.enable [ bluedevil bluez-qt ] + ++ lib.optionals config.hardware.bluetooth.enable [ bluedevil bluez-qt openobex obexftp ] ++ lib.optional config.networking.networkmanager.enable plasma-nm ++ lib.optional config.hardware.pulseaudio.enable plasma-pa ++ lib.optional config.powerManagement.enable powerdevil