72b31a08ea
But this successfully will load all modules recursively.
20 lines
406 B
Nix
20 lines
406 B
Nix
{ config, lib, pkgs, ... }:
|
|
let
|
|
cfg = config.this.system.displaymanager;
|
|
graphical = config.this.graphical;
|
|
in with lib; {
|
|
options = {
|
|
this.system.displaymanager.enable = mkOption {
|
|
default = graphical.enable;
|
|
type = with types; bool;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services.xserver = {
|
|
enable = true;
|
|
displayManager = { gdm.enable = true; };
|
|
};
|
|
};
|
|
}
|