gnome3.gdm: add branding

We use the logo key to add the NixOS text logo to GDM.
This commit is contained in:
worldofpeace 2019-09-19 19:14:12 -04:00 committed by Jan Tojnar
parent f9b44934bc
commit ea6aae81f1
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4
2 changed files with 22 additions and 1 deletions

View file

@ -1,7 +1,21 @@
{ stdenv, fetchurl, substituteAll, pkgconfig, glib, itstool, libxml2, xorg
, accountsservice, libX11, gnome3, systemd, autoreconfHook
, gtk3, libcanberra-gtk3, pam, libtool, gobject-introspection, plymouth
, librsvg, coreutils, xwayland }:
, librsvg, coreutils, xwayland, nixos-icons }:
let
icon = fetchurl {
url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/4f041870efa1a6f0799ef4b32bb7be2cafee7a74/logo/nixos.svg";
sha256 = "0b0dj408c1wxmzy6k0pjwc4bzwq286f1334s3cqqwdwjshxskshk";
};
override = substituteAll {
src = ./org.gnome.login-screen.gschema.override;
inherit icon;
};
in
stdenv.mkDerivation rec {
pname = "gdm";
@ -65,6 +79,11 @@ stdenv.mkDerivation rec {
"dbusconfdir=$(out)/etc/dbus-1/system.d"
];
preInstall = ''
schema_dir=${glib.makeSchemaPath "$out" "${pname}-${version}"}
install -D ${override} $schema_dir/org.gnome.login-screen.gschema.override
'';
passthru = {
updateScript = gnome3.updateScript {
packageName = "gdm";

View file

@ -0,0 +1,2 @@
[org.gnome.login-screen]
logo='@icon@'