cosmic: add orca (screen reader) support (#417847)

This commit is contained in:
Aleksana
2025-06-20 12:38:17 +08:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
@@ -13,6 +13,7 @@
let
cfg = config.services.desktopManager.cosmic;
notExcluded = pkg: utils.disablePackageByName pkg config.environment.cosmic.excludePackages;
excludedCorePkgs = lib.lists.intersectLists corePkgs config.environment.cosmic.excludePackages;
# **ONLY ADD PACKAGES WITHOUT WHICH COSMIC CRASHES, NOTHING ELSE**
corePkgs =
@@ -162,6 +163,7 @@ in
services.avahi.enable = lib.mkDefault true;
services.gnome.gnome-keyring.enable = lib.mkDefault true;
services.gvfs.enable = lib.mkDefault true;
services.orca.enable = lib.mkDefault (notExcluded pkgs.orca);
services.power-profiles-daemon.enable = lib.mkDefault (
!config.hardware.system76.power-daemon.enable
);
+4 -1
View File
@@ -50,7 +50,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
"target/${stdenv.hostPlatform.rust.cargoShortTarget}"
];
env.XDP_COSMIC = "${xdg-desktop-portal-cosmic}/libexec/xdg-desktop-portal-cosmic";
env = {
XDP_COSMIC = lib.getExe xdg-desktop-portal-cosmic;
ORCA = "orca"; # get orca from $PATH
};
passthru = {
providedSessions = [ "cosmic" ];