This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
nil/modules/system/displaymanager.nix
James Patrick 4e9b865e33 de-pluralized systems -> system
This was not being used consistently.
2022-07-16 19:07:34 -04:00

20 lines
396 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.system.displaymanager;
graphical = config.this.graphical;
in with lib; {
options = {
system.displaymanager.enable = mkOption {
default = graphical.enable;
type = with types; bool;
};
};
config = mkIf cfg.enable {
services.xserver = {
enable = true;
displayManager = { gdm.enable = true; };
};
};
}