mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
9f054b5e1a
(It was requested by them.) I left one case due to fetching from their personal repo: pkgs/desktops/pantheon/desktop/extra-elementary-contracts/default.nix
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
dmcfg = config.services.xserver.displayManager;
|
|
ldmcfg = dmcfg.lightdm;
|
|
cfg = ldmcfg.greeters.pantheon;
|
|
|
|
in
|
|
{
|
|
meta = {
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
|
|
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 {
|
|
package = pkgs.pantheon.elementary-greeter.xgreeters;
|
|
name = "io.elementary.greeter";
|
|
};
|
|
|
|
# Show manual login card.
|
|
services.xserver.displayManager.lightdm.extraSeatDefaults = "greeter-show-manual-login=true";
|
|
|
|
environment.etc."lightdm/io.elementary.greeter.conf".source = "${pkgs.pantheon.elementary-greeter}/etc/lightdm/io.elementary.greeter.conf";
|
|
environment.etc."wingpanel.d/io.elementary.greeter.allowed".source = "${pkgs.pantheon.elementary-default-settings}/etc/wingpanel.d/io.elementary.greeter.allowed";
|
|
|
|
};
|
|
}
|