{ lib, config, ... }: lib.mkIf config.desktop.autologin.enable { security.pam.services.hyprlock = { }; services.greetd = { enable = true; settings = rec { initial_session = { command = config.desktop.windowManager; user = "willifan"; }; default_session = initial_session; }; }; }