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 72b31a08ea Disable additional imports as it causes conflicts.
But this successfully will load all modules recursively.
2022-08-11 23:58:15 -04:00

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; };
};
};
}