···105 </term>
106 <listitem>
107 <para>
108- AppCenter has been available since 20.03, but it is of little use. This is because there is no functioning PackageKit backend for Nix 2.0. Starting from 21.11, the Flatpak backend should work so you can install some Flatpak applications using it. See this <link xlink:href="https://github.com/NixOS/nixpkgs/issues/70214">issue</link>.
109 </para>
110 <para>
111 To use AppCenter on NixOS, add <literal>pantheon.appcenter</literal> to <xref linkend="opt-environment.systemPackages" />, <link linkend="module-services-flatpak">enable Flatpak support</link> and optionally add the <literal>appcenter</literal> Flatpak remote:
···105 </term>
106 <listitem>
107 <para>
108+ AppCenter has been available since 20.03, but it is of little use. This is because there is no functioning PackageKit backend for Nix 2.0. The Flatpak backend will not work before <link xlink:href="https://github.com/elementary/appcenter/issues/1076">flag for Flatpak-only</link> is provided. See this <link xlink:href="https://github.com/NixOS/nixpkgs/issues/70214">issue</link>.
109 </para>
110 <para>
111 To use AppCenter on NixOS, add <literal>pantheon.appcenter</literal> to <xref linkend="opt-environment.systemPackages" />, <link linkend="module-services-flatpak">enable Flatpak support</link> and optionally add the <literal>appcenter</literal> Flatpak remote:
-9
pkgs/desktops/pantheon/apps/appcenter/default.nix
···39 sha256 = "sha256-d7DGyAC8itBxTfuabDPN16W4S4d42s5UPp8AusZfy5k=";
40 };
4142- patches = [
43- # Try to remove other backends to make flatpak backend work.
44- # https://github.com/NixOS/nixpkgs/issues/70214
45- ./flatpak-only.patch
46- # The homepage banner does not show up on first run,
47- # has issues with app icon and mouse scrolling.
48- ./drop-homepage-banner.patch
49- ];
50-51 passthru = {
52 updateScript = nix-update-script {
53 attrPath = "pantheon.${pname}";
···15, switchboard
16, fwupd
17, appstream
018}:
1920stdenv.mkDerivation rec {
···53 ];
5455 patches = [
56- # The NixOS logo is not centered in the circular background and path
57- # to the background is hardcoded, we will drop the background.
58- ./remove-logo-background.patch
0059 ];
6061 meta = with lib; {
···1-diff --git a/src/Views/OperatingSystemView.vala b/src/Views/OperatingSystemView.vala
2-index fdb92e7..87bb3a4 100644
3---- a/src/Views/OperatingSystemView.vala
4-+++ b/src/Views/OperatingSystemView.vala
5-@@ -39,21 +39,6 @@ public class About.OperatingSystemView : Gtk.Grid {
6- logo_icon_name = "distributor-logo";
7- }
8-9-- var logo = new Hdy.Avatar (128, "", false) {
10-- // In case the wallpaper can't be loaded, we don't want an icon or text
11-- icon_name = "invalid-icon-name",
12-- // We need this for the shadow to not get clipped by Gtk.Overlay
13-- margin = 6
14-- };
15-- logo.set_image_load_func ((size) => {
16-- try {
17-- return new Gdk.Pixbuf.from_file_at_scale ("/usr/share/backgrounds/elementaryos-default", -1, size, true);
18-- } catch (Error e) {
19-- critical (e.message);
20-- }
21-- });
22-- logo.get_style_context ().add_provider (style_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
23--
24- var icon = new Gtk.Image () {
25- icon_name = logo_icon_name + "-symbolic",
26- // 128 minus 3px padding on each side
27-@@ -65,8 +50,7 @@ public class About.OperatingSystemView : Gtk.Grid {
28- icon_style_context.add_provider (style_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
29-30- var logo_overlay = new Gtk.Overlay ();
31-- logo_overlay.add (logo);
32-- logo_overlay.add_overlay (icon);
33-+ logo_overlay.add (icon);
34-35- // Intentionally not using GLib.OsInfoKey.PRETTY_NAME here because we
36- // want more granular control over text formatting