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
2022-03-23 22:33:42 -04:00

28 lines
519 B
Nix

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