Added Display Manager so I half to deal with less.

This commit is contained in:
James Patrick 2022-03-23 22:29:13 -04:00
parent ec278d6ad5
commit 52c49bc422
2 changed files with 28 additions and 0 deletions

View File

@ -2,6 +2,7 @@
imports = [
./boot.nix
./cli.nix
./displaymanager.nix
./flatpak.nix
./fonts.nix
./gtk.nix

View File

@ -0,0 +1,27 @@
{ 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;
};
};
};
}