nixos/lomiri: Add bluetooth indicator

This commit is contained in:
OPNA2608
2024-08-24 11:02:11 +02:00
parent 00929036f8
commit 132b5ce9d3
2 changed files with 12 additions and 0 deletions

View File

@@ -50,6 +50,10 @@ in {
}; };
}; };
hardware = {
bluetooth.enable = lib.mkDefault true;
};
networking.networkmanager.enable = lib.mkDefault true; networking.networkmanager.enable = lib.mkDefault true;
systemd.packages = with pkgs.lomiri; [ systemd.packages = with pkgs.lomiri; [
@@ -87,6 +91,8 @@ in {
ayatana-indicator-messages ayatana-indicator-messages
ayatana-indicator-power ayatana-indicator-power
ayatana-indicator-session ayatana-indicator-session
] ++ lib.optionals config.hardware.bluetooth.enable [
ayatana-indicator-bluetooth
] ++ lib.optionals (config.hardware.pulseaudio.enable || config.services.pipewire.pulse.enable) [ ] ++ lib.optionals (config.hardware.pulseaudio.enable || config.services.pipewire.pulse.enable) [
ayatana-indicator-sound ayatana-indicator-sound
]) ++ (with pkgs.lomiri; [ ]) ++ (with pkgs.lomiri; [

View File

@@ -654,6 +654,7 @@ in
machine.send_key("left") machine.send_key("left")
machine.send_key("left") machine.send_key("left")
machine.send_key("left") machine.send_key("left")
machine.send_key("left")
# Notifications are usually empty, nothing to check there # Notifications are usually empty, nothing to check there
with subtest("ayatana indicator display works"): with subtest("ayatana indicator display works"):
@@ -661,6 +662,11 @@ in
wait_for_text("Lock") wait_for_text("Lock")
machine.screenshot("indicators_display") machine.screenshot("indicators_display")
with subtest("ayatana indicator bluetooth works"):
machine.send_key("right")
wait_for_text("Bluetooth settings")
machine.screenshot("indicators_bluetooth")
with subtest("lomiri indicator network works"): with subtest("lomiri indicator network works"):
machine.send_key("right") machine.send_key("right")
wait_for_text(r"(Flight|Wi-Fi)") wait_for_text(r"(Flight|Wi-Fi)")