From f6bb5c297372719a6ea1c369b2b1a1aa10580452 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sat, 14 Oct 2023 23:02:42 +0300 Subject: [PATCH] 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. ``` --- docs/installation.adoc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/installation.adoc b/docs/installation.adoc index 7b2ecd43..70d8c6f1 100644 --- a/docs/installation.adoc +++ b/docs/installation.adoc @@ -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"; }; ----