1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

docs: add stateVersion to the NixOS/nix-darwin example

This is necessary, without this a new user gets

```
error: The option `home-manager.users.X.home.stateVersion' is used but not defined.
```
This commit is contained in:
Artturin 2023-10-14 23:02:42 +03:00 committed by Robert Helgesson
parent 78125bc681
commit f6bb5c2973
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -155,6 +155,10 @@ users.users.eve.isNormalUser = true;
home-manager.users.eve = { pkgs, ... }: {
home.packages = [ pkgs.atool pkgs.httpie ];
programs.bash.enable = true;
# The state version is required and should stay at the version you
# originally installed.
system.stateVersion = "23.05";
};
----
@ -278,6 +282,10 @@ users.users.eve = {
home-manager.users.eve = { pkgs, ... }: {
home.packages = [ pkgs.atool pkgs.httpie ];
programs.bash.enable = true;
# The state version is required and should stay at the version you
# originally installed.
system.stateVersion = "23.05";
};
----