anchor.diff:          session  optional       pam_keyinit.so force revoke
           session  optional       pam_permit.so
         '';
  +
  +      sddm-autologin.text = ''
  +        auth     requisite pam_nologin.so
  +        auth     required  pam_succeed_if.so uid >= 1000 quiet
  +        auth     required  pam_permit.so
  +
  +        account  include   sddm
  +
  +        password include   sddm
  +
  +        session  include   sddm
  +      '';
       };
   
       users.extraUsers.sddm = {
  
positive.code:           Greeter theme to use.
          '';
        };
      };
  
    };
  
    config = mkIf cfg.enable {
  
      services.xserver.displayManager.slim.enable = false;
  
  
negative.code:     SessionDir=${dmcfg.session.desktops}
      XauthPath=${pkgs.xorg.xauth}/bin/xauth
  
      ${optionalString cfg.autoLogin.enable ''
      [Autologin]
      User=${cfg.autoLogin.user}
      Session=${defaultSessionName}.desktop
      Relogin=${if cfg.autoLogin.relogin then "true" else "false"}
      ''}
  
      ${cfg.extraConfig}
    '';
  
    defaultSessionName =
      let
        dm = xcfg.desktopManager.default;
        wm = xcfg.windowManager.default;
      in dm + optionalString (wm != "none") (" + " + wm);
  
  in
  {
  