Added Display Manager so I half to deal with less.
This commit is contained in:
parent
ec278d6ad5
commit
52c49bc422
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./boot.nix
|
||||
./cli.nix
|
||||
./displaymanager.nix
|
||||
./flatpak.nix
|
||||
./fonts.nix
|
||||
./gtk.nix
|
||||
|
|
27
modules/system/displaymanager.nix
Normal file
27
modules/system/displaymanager.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user