Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
34 lines
1,020 B
Nix
34 lines
1,020 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
dmcfg = config.services.displayManager;
|
|
ldmcfg = config.services.xserver.displayManager.lightdm;
|
|
cfg = ldmcfg.greeters.lomiri;
|
|
|
|
in
|
|
{
|
|
meta.maintainers = lib.teams.lomiri.members;
|
|
|
|
options = {
|
|
services.xserver.displayManager.lightdm.greeters.lomiri = {
|
|
enable = lib.mkEnableOption "lomiri's greeter as the lightdm greeter";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf (ldmcfg.enable && cfg.enable) {
|
|
services.xserver.displayManager.lightdm.greeters.gtk.enable = false;
|
|
|
|
services.xserver.displayManager.lightdm.greeter = lib.mkDefault {
|
|
package = pkgs.lomiri.lomiri.greeter;
|
|
name = "lomiri-greeter";
|
|
};
|
|
|
|
# Greeter needs to be run through its wrapper
|
|
# Greeter doesn't work with our set-session.py script, need to set default user-session
|
|
services.xserver.displayManager.lightdm.extraSeatDefaults = ''
|
|
greeter-wrapper = ${lib.getExe' pkgs.lomiri.lomiri "lomiri-greeter-wrapper"}
|
|
user-session = ${dmcfg.defaultSession}
|
|
'';
|
|
};
|
|
}
|