26 lines
496 B
Nix
26 lines
496 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;
|
|
};
|
|
};
|
|
};
|
|
}
|