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

20 lines
400 B
Nix

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