anchor.diff:  
         sddm-autologin.text = ''
           auth     requisite pam_nologin.so
  -        auth     required  pam_succeed_if.so uid >= 1000 quiet
  +        auth     required  pam_succeed_if.so uid >= ${toString cfg.autoLogin.minimumUid} quiet
           auth     required  pam_permit.so
   
           account  include   sddm
  
positive.code:       };
  
        # Configuration for automatic login specific to SDDM
        autoLogin.relogin = mkOption {
          type = types.bool;
          default = false;
          description = ''
            If true automatic login will kick in again on session exit (logout), otherwise it
            will only log in automatically when the display-manager is started.
          '';
        };
  
      };
  
    };
  
    config = mkIf cfg.enable {
  
      assertions = [
        { assertion = xcfg.enable;
          message = ''
            SDDM requires services.xserver.enable to be true
          '';
        }
        { assertion = dmcfg.autoLogin.enable -> autoLoginSessionName != null;
          message = ''
            SDDM auto-login requires that services.xserver.displayManager.defaultSession is set.
          '';
  
negative.code: { config, lib, pkgs, ... }:
  
  with lib;
  let
    xcfg = config.services.xserver;
    dmcfg = xcfg.displayManager;
    cfg = dmcfg.sddm;
  