P1777 is a step motor error code.
The CVT is covered by Nissan's 10 years/120,000 mile extended CVT warranty. The power train warranty is 5yr/60,000 miles. I see no reason why this repair should not be covered under warranty... the valve body is part of the CVT.
From the 2009 Warranty Booklet:
TRANSMISSION AND TRANSAXLE
Case and all internal parts, torque converter and converter housing, automatic transmission control module, transfer case and all internal parts, seals and gaskets, clutch cover and housing, and electronic transmission controls.
Read:
'All internal parts', the valve body is inside the transmission... it's an internal part.
There was also a tech bulletin released for a P1777 error code:
NTB09148 - SB Altima/Rogue/Sentra; MIL "ON" w/DTC P0840/P0845/P0744/P1777
* IF YOU CONFIRM Any of the following DTCs are stored in the TCM: - P0840 - P0845 - P0744 - P1777 ACTIONS Replace the Control Valve Assembly with the part listed in the Parts Information section of this bulletin. Reference SECTION TM, CONTROL VALVE Removal and Inspection in the appropriate ESM for directions. Erase the EEP ROM calibration data in the TCM and allow it to recalibrate. Reference NTB08-064; CVT AND 5 SPEED A/T INITIALIZATION INFORMATION for directions.