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-manager.users.eve = { pkgs, ... }: {
home.packages = [ pkgs.atool pkgs.httpie ]; home.packages = [ pkgs.atool pkgs.httpie ];
programs.bash.enable = true; 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-manager.users.eve = { pkgs, ... }: {
home.packages = [ pkgs.atool pkgs.httpie ]; home.packages = [ pkgs.atool pkgs.httpie ];
programs.bash.enable = true; programs.bash.enable = true;
# The state version is required and should stay at the version you
# originally installed.
system.stateVersion = "23.05";
}; };
---- ----