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:
parent
78125bc681
commit
f6bb5c2973
1 changed files with 8 additions and 0 deletions
|
@ -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";
|
||||
};
|
||||
----
|
||||
|
||||
|
|
Loading…
Reference in a new issue