anchor.diff:          };
         };
   
  -      home.file.".xsession" = {
  -        mode = "555";
  -        text = ''
  +      home.file.".xprofile".text = ''
             if [[ -e "$HOME/.profile" ]]; then
               . "$HOME/.profile"
             fi
   
             # If there are any running services from a previous session.
  +          # Need to run this in xprofile because the NixOS xsession
  +          # script starts up graphical-session.target.
             systemctl --user stop graphical-session.target graphical-session-pre.target
   
             systemctl --user import-environment DBUS_SESSION_BUS_ADDRESS
  
positive.code:           systemctl --user import-environment XDG_DATA_DIRS
            systemctl --user import-environment XDG_RUNTIME_DIR
            systemctl --user import-environment XDG_SESSION_ID
  
            systemctl --user start hm-graphical-session.target
  
  
negative.code:           Window manager start command. DEPRECATED: Use
            <varname>xsession.windowManager.command</varname> instead.
          '';
        };
  
        profileExtra = mkOption {
          type = types.lines;
          default = "";
          description = "Extra shell commands to run before session start.";
        };
  
        initExtra = mkOption {
  