Unverified Commit 18975e6d authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

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

parents 23328d1c 4b3f38fb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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" ];