install: add state version to initial configuration

This sets the state version in recent installs to the latest released
version. It is beneficial for people to be aware of this option and it
is also good to help new users get a more recent setup.

(cherry picked from commit 54f367b119)
This commit is contained in:
Robert Helgesson 2019-12-30 22:32:27 +01:00
parent 11f8b1c1ce
commit af2303526d
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -21,6 +21,16 @@ runCommand
{
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "19.09";
}
EOF
fi