nixos/lomiri: Add bluetooth indicator
This commit is contained in:
@@ -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; [
|
||||||
|
|||||||
@@ -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)")
|
||||||
|
|||||||
Reference in New Issue
Block a user