summaryrefslogtreecommitdiff
path: root/modules/root/autologin.nix
blob: 6e66160c3ec08d4c919b3229fd01953116e2f3cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ lib, config, userDetails, ... }: {
	options = {
		autologin.enable   = lib.mkEnableOption "enables getty automatic login";
		#autologin.user     = lib.mkEnableOption "populate username";
		#autologin.password = lib.mkEnableOption "populate password";
	};

	config = lib.mkIf config.autologin.enable {
		services.getty = {
			autologinUser = userDetails.username;
		};
	};
}