Closed joscha closed 1 month ago
You can set system.stateVersion = 4;
to use the stateVersion
that was current as of the nix-darwin version before you upgraded, which should just work, or set system.stateVersion = 5;
to use the current one (but it is likely you will be prompted to add the nixbld
GID setting too if you do that, yes). It should go in your nix-darwin configuration/modules, not the darwinSystem
call itself.
Thank you @emilazy, that worked a charm!
Hi guys, after running nix flake update
, I'm experiencing the same error, I have added system.StateVersion = 5;
to the configuration, but the installation of karabiner isn't working. any idea @emilazy? Thanks
error:
Failed assertions:
- The `system.stateVersion` option is not defined in your
nix-darwin configuration. The value is used to conditionalize
backwards‐incompatible changes in default settings. You should
usually set this once when installing nix-darwin on a new system
and then never change it (at least without reading all the relevant
entries in the changelog using `darwin-rebuild changelog`).
You can use the current value for new installations as follows:
system.stateVersion = 5;
user defaults...
restarting Dock...
setting up user launchd services...
creating user service org.nixos.activate_karabiner_system_ext
creating user service org.pqrs.karabiner.agent.karabiner_grabber
cp: cannot stat '/nix/store/cx8xka66lfjvd1lsmv2bkqarj8ds00kd-launchd/user/Library/LaunchAgents/org.pqrs.karabiner.agent.karabiner_grabber.plist': No such file or directory
I am getting
after upgrading
nix-darwin
:I found https://github.com/LnL7/nix-darwin/blob/c03f85fa42d68d1056ca1740f3113b04f3addff2/CHANGELOG#L1-L13
but I am frankly unsure on how to upgrade
nix-darwin
w/o a full reinstall. I havewhich I understand is the culprit.
How do I find out what my current
stateVersion
is? Also, adding it to my darwin config like:results in:
Additionally I am not certain where to put
apologies if the fix is obvious, hopefully help here might help others with the same issue to upgrade as well.