Warning about `system.stateVersion` when running the first example
miniBill opened this issue · 2 comments
miniBill commented
What did I do?
nix flake init --template 'github:Gabriella439/nixos-in-production/0.4#setup'
nix run
What did I expect?
A VM with NixOS in it
What did happen?
warning: creating lock file '/Users/minibill/src/nixos-in-production/flake.lock'
trace: warning: system.stateVersion is not set, defaulting to 22.11. Read why this matters on https://nixos.org/manual/nixos/stable/options.html#opt-system.stateVersion.
<then the VM starts>
Gabriella439 commented
Yeah, this is intentional (there is a section later on where the system.stateVersion
is added), but I can add a small note mentioning that this warning is expected. Would that work for you?
miniBill commented
Yupp! I can see how you avoiding introducing it at the beginning makes sense from a progression point of view.
I think a note makes sense!