{ 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; }; }; }