mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
21 lines
421 B
Nix
21 lines
421 B
Nix
_:
|
|
{config, lib, ...}:
|
|
{
|
|
options.local.DM = {
|
|
autoLogin = lib.mkEnableOption "";
|
|
loginUser = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.str;
|
|
default = null;
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.local.DM.autoLogin {
|
|
services.xserver.displayManager = {
|
|
autoLogin = {
|
|
enable = true;
|
|
user = config.local.DM.loginUser;
|
|
};
|
|
};
|
|
};
|
|
_file = ./autoLogin.nix;
|
|
}
|