···105105 </term>
106106 <listitem>
107107 <para>
108108- 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>.
108108+ 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>.
109109 </para>
110110 <para>
111111 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
···3939 sha256 = "sha256-d7DGyAC8itBxTfuabDPN16W4S4d42s5UPp8AusZfy5k=";
4040 };
41414242- patches = [
4343- # Try to remove other backends to make flatpak backend work.
4444- # https://github.com/NixOS/nixpkgs/issues/70214
4545- ./flatpak-only.patch
4646- # The homepage banner does not show up on first run,
4747- # has issues with app icon and mouse scrolling.
4848- ./drop-homepage-banner.patch
4949- ];
5050-5142 passthru = {
5243 updateScript = nix-update-script {
5344 attrPath = "pantheon.${pname}";
···1515, switchboard
1616, fwupd
1717, appstream
1818+, nixos-artwork
1819}:
19202021stdenv.mkDerivation rec {
···5354 ];
54555556 patches = [
5656- # The NixOS logo is not centered in the circular background and path
5757- # to the background is hardcoded, we will drop the background.
5858- ./remove-logo-background.patch
5757+ # Use NixOS's default wallpaper
5858+ (substituteAll {
5959+ src = ./fix-background-path.patch;
6060+ default_wallpaper = "${nixos-artwork.wallpapers.simple-dark-gray.gnomeFilePath}";
6161+ })
5962 ];
60636164 meta = with lib; {
···11-diff --git a/src/Views/OperatingSystemView.vala b/src/Views/OperatingSystemView.vala
22-index fdb92e7..87bb3a4 100644
33---- a/src/Views/OperatingSystemView.vala
44-+++ b/src/Views/OperatingSystemView.vala
55-@@ -39,21 +39,6 @@ public class About.OperatingSystemView : Gtk.Grid {
66- logo_icon_name = "distributor-logo";
77- }
88-99-- var logo = new Hdy.Avatar (128, "", false) {
1010-- // In case the wallpaper can't be loaded, we don't want an icon or text
1111-- icon_name = "invalid-icon-name",
1212-- // We need this for the shadow to not get clipped by Gtk.Overlay
1313-- margin = 6
1414-- };
1515-- logo.set_image_load_func ((size) => {
1616-- try {
1717-- return new Gdk.Pixbuf.from_file_at_scale ("/usr/share/backgrounds/elementaryos-default", -1, size, true);
1818-- } catch (Error e) {
1919-- critical (e.message);
2020-- }
2121-- });
2222-- logo.get_style_context ().add_provider (style_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
2323--
2424- var icon = new Gtk.Image () {
2525- icon_name = logo_icon_name + "-symbolic",
2626- // 128 minus 3px padding on each side
2727-@@ -65,8 +50,7 @@ public class About.OperatingSystemView : Gtk.Grid {
2828- icon_style_context.add_provider (style_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
2929-3030- var logo_overlay = new Gtk.Overlay ();
3131-- logo_overlay.add (logo);
3232-- logo_overlay.add_overlay (icon);
3333-+ logo_overlay.add (icon);
3434-3535- // Intentionally not using GLib.OsInfoKey.PRETTY_NAME here because we
3636- // want more granular control over text formatting