mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
moved functions to /lib inputs over imports turned each module file into a nixosModule moved registry and $NIX_PATH pinning to /modules/pinning.nix
22 lines
423 B
Nix
22 lines
423 B
Nix
_: {
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
options.localModules.DM = {
|
|
autoLogin = lib.mkEnableOption "";
|
|
loginUser = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.str;
|
|
default = null;
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.localModules.DM.autoLogin {
|
|
services.xserver.displayManager = {
|
|
autoLogin = {
|
|
enable = true;
|
|
user = config.localModules.DM.loginUser;
|
|
};
|
|
};
|
|
};
|
|
}
|