mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08: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:
committed by
Robert Helgesson
parent
78125bc681
commit
f6bb5c2973
@@ -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";
|
||||
};
|
||||
----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user