4e9b865e33
This was not being used consistently.
20 lines
396 B
Nix
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; };
|
|
};
|
|
};
|
|
}
|