2018-08-20 21:31:18 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
dmcfg = config.services.xserver.displayManager;
|
|
|
|
ldmcfg = dmcfg.lightdm;
|
|
|
|
cfg = ldmcfg.greeters.pantheon;
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
2020-04-02 01:16:24 +01:00
|
|
|
meta = {
|
2021-05-05 10:25:45 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-02 01:16:24 +01:00
|
|
|
};
|
|
|
|
|
2018-08-20 21:31:18 +01:00
|
|
|
options = {
|
|
|
|
|
|
|
|
services.xserver.displayManager.lightdm.greeters.pantheon = {
|
|
|
|
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
Whether to enable elementary-greeter as the lightdm greeter.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf (ldmcfg.enable && cfg.enable) {
|
|
|
|
|
|
|
|
services.xserver.displayManager.lightdm.greeters.gtk.enable = false;
|
|
|
|
|
|
|
|
services.xserver.displayManager.lightdm.greeter = mkDefault {
|
2019-09-14 02:27:46 +01:00
|
|
|
package = pkgs.pantheon.elementary-greeter.xgreeters;
|
2018-08-20 21:31:18 +01:00
|
|
|
name = "io.elementary.greeter";
|
|
|
|
};
|
|
|
|
|
2019-12-12 12:22:37 +00:00
|
|
|
# Show manual login card.
|
|
|
|
services.xserver.displayManager.lightdm.extraSeatDefaults = "greeter-show-manual-login=true";
|
|
|
|
|
2018-08-20 21:31:18 +01:00
|
|
|
environment.etc."lightdm/io.elementary.greeter.conf".source = "${pkgs.pantheon.elementary-greeter}/etc/lightdm/io.elementary.greeter.conf";
|
2020-07-07 15:52:14 +01:00
|
|
|
environment.etc."wingpanel.d/io.elementary.greeter.allowed".source = "${pkgs.pantheon.elementary-default-settings}/etc/wingpanel.d/io.elementary.greeter.allowed";
|
2018-08-20 21:31:18 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|