SDDM wrong install in Nixos 21.11

I have setup nixos 21.11 with plasma and I cannot login with SDDM. I have checked sddm.nix from github I have notice that no sddm user have been created and there is no /var/lib/sddm dir.
Before sddm I have configured lightdm but now all options are removed.
This is plasma config:

    services.xserver = {
      enable = true;
      desktopManager.plasma5.enable = true;
      displayManager.defaultSession = "plasma";
      displayManager.autoLogin = {
          enable = true;
          user = config.user.name;
        };
      displayManager.sddm = {
      	enable = true;
        enableHidpi = false;
        # theme = "Breeze-Dark";
      };
      desktopManager.xterm.enable = false;
    };

This is mi flake.nix:

{
  description = "A grossly incandescent nixos config.";

  inputs = 
    {
      # Core dependencies.
      nixpkgs.url = "nixpkgs/nixos-21.11";     # primary nixpkgs
      nixpkgs-unstable.url = "nixpkgs/nixos-unstable";    # for packages on the edge
      # nixpkgs-unstable.url = "nixpkgs/master";    # for packages on the edge
      nixos.url          = "nixpkgs/nixos-21.11";
      nixos-unstable.url = "nixpkgs/nixos-unstable";
      home-manager.url   = "github:rycee/home-manager/release-21.11";
      home-manager.inputs.nixpkgs.follows = "nixpkgs";
      agenix.url = "github:ryantm/agenix";
      agenix.inputs.nixpkgs.follows = "nixpkgs";

      #old
      # nixpkgs.url = "nixpkgs/nixos-unstable";             # primary nixpkgs
      # nixpkgs-unstable.url = "nixpkgs/nixpkgs-unstable";  # for packages on the edge
      # home-manager.url = "github:rycee/home-manager/master";
      # home-manager.inputs.nixpkgs.follows = "nixpkgs";
      # agenix.url = "github:ryantm/agenix";
      # agenix.inputs.nixpkgs.follows = "nixpkgs";

      # Extras
      emacs-overlay.url  = "github:nix-community/emacs-overlay";
      nixos-hardware.url = "github:nixos/nixos-hardware";
      nix-doom-emacs.url = "github:vlaci/nix-doom-emacs";

     
    };

  outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, ... }:
    let
      inherit (lib.my) mapModules mapModulesRec mapHosts;

      system = "x86_64-linux";

      mkPkgs = pkgs: extraOverlays: import pkgs {
        inherit system;
        config.allowUnfree = true;  # forgive me Stallman senpai
        overlays = extraOverlays ++ (lib.attrValues self.overlays);
      };
      pkgs  = mkPkgs nixpkgs [ self.overlay ];
      pkgs' = mkPkgs nixpkgs-unstable [];

      lib = nixpkgs.lib.extend
        (self: super: { my = import ./lib { inherit pkgs inputs; lib = self; }; });
    in {
      lib = lib.my;

      overlay =
        final: prev: {
          unstable = pkgs';
          my = self.packages."${system}";
        };

      overlays =
        mapModules ./overlays import;

      packages."${system}" =
        mapModules ./packages (p: pkgs.callPackage p {});

      nixosModules =
        { dotfiles = import ./.; } // mapModulesRec ./modules import;

      nixosConfigurations =
        mapHosts ./hosts {};

      devShell."${system}" =
        import ./shell.nix { inherit pkgs; };

      templates = {
        full = {
          path = ./.;
          description = "A grossly incandescent nixos config";
        };
        minimal = {
          path = ./templates/minimal;
          description = "A grossly incandescent and minimal nixos config";
        };
      };
      defaultTemplate = self.templates.minimal;

      defaultApp."${system}" = {
        type = "app";
        program = ./bin/hey;
      };
    };
}

Any ideas?. Thanks in advice