nixos-config/modules/lightdm/default.nix
2022-11-11 17:07:24 +01:00

26 lines
437 B
Nix

{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.eboskma.lightdm;
in
{
options.eboskma.lightdm = {
enable = mkEnableOption "lightdm";
};
config = mkIf cfg.enable {
services.xserver = {
enable = true;
displayManager = {
defaultSession = "none+i3";
lightdm = {
enable = true;
greeters.gtk = {
enable = true;
};
};
};
};
};
}