gnome3.gdm: add branding
We use the logo key to add the NixOS text logo to GDM.
This commit is contained in:
parent
f9b44934bc
commit
ea6aae81f1
@ -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";
|
||||
|
@ -0,0 +1,2 @@
|
||||
[org.gnome.login-screen]
|
||||
logo='@icon@'
|
Loading…
Reference in New Issue
Block a user