Browse Source

lightdm-mini-greeter: put xgreeters in passthru

openssl
worldofpeace 2 years ago
parent
commit
5669b06235
  1. 7
      nixos/modules/services/x11/display-managers/lightdm-greeters/mini.nix
  2. 5
      pkgs/applications/display-managers/lightdm-mini-greeter/default.nix

7
nixos/modules/services/x11/display-managers/lightdm-greeters/mini.nix

@ -8,11 +8,6 @@ let
ldmcfg = dmcfg.lightdm;
cfg = ldmcfg.greeters.mini;
xgreeters = pkgs.linkFarm "lightdm-mini-greeter-xgreeters" [{
path = "${pkgs.lightdm-mini-greeter}/share/xgreeters/lightdm-mini-greeter.desktop";
name = "lightdm-mini-greeter.desktop";
}];
miniGreeterConf = pkgs.writeText "lightdm-mini-greeter.conf"
''
[greeter]
@ -90,7 +85,7 @@ in
services.xserver.displayManager.lightdm.greeters.gtk.enable = false;
services.xserver.displayManager.lightdm.greeter = mkDefault {
package = xgreeters;
package = pkgs.lightdm-mini-greeter.xgreeters;
name = "lightdm-mini-greeter";
};

5
pkgs/applications/display-managers/lightdm-mini-greeter/default.nix

@ -22,6 +22,11 @@ stdenv.mkDerivation rec {
--replace "Exec=lightdm-mini-greeter" "Exec=$out/bin/lightdm-mini-greeter"
'';
passthru.xgreeters = linkFarm "lightdm-mini-greeter-xgreeters" [{
path = "${lightdm-mini-greeter}/share/xgreeters/lightdm-mini-greeter.desktop";
name = "lightdm-mini-greeter.desktop";
}];
meta = with stdenv.lib; {
description = "A minimal, configurable, single-user GTK3 LightDM greeter";
homepage = https://github.com/prikhi/lightdm-mini-greeter;

Loading…
Cancel
Save