error: … while evaluating the attribute 'optionalValue.value' at «git+https://github.com/NixOS/nixpkgs?ref=nixpkgs-unstable&rev=3d8f0f3f72a6cd4d93d0ad13203f2ea1cb7e1456&shallow=1»/lib/modules.nix:1330:5: 1329| 1330| optionalValue = if isDefined then { value = mergedValue; } else { }; | ^ 1331| }; … while evaluating a branch condition at «git+https://github.com/NixOS/nixpkgs?ref=nixpkgs-unstable&rev=3d8f0f3f72a6cd4d93d0ad13203f2ea1cb7e1456&shallow=1»/lib/modules.nix:1330:21: 1329| 1330| optionalValue = if isDefined then { value = mergedValue; } else { }; | ^ 1331| }; … while evaluating definitions from `/nix/store/xfg4bws749i95jvnxhymxmfwailzk38q-source/modules/transposition.nix': … while evaluating definitions from `/nix/store/jhr81pkrlv465sxybzr0czcyv1y6fqqs-source/checks/flake-module.nix, via option perSystem': … while evaluating definitions from `/nix/store/jam81gdfp0984mmjnf4hmgzys9y8v9vf-source/flakeModules/clan.nix': … while evaluating definitions from `/nix/store/jam81gdfp0984mmjnf4hmgzys9y8v9vf-source/modules/clan/module.nix': (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: nix-darwin now uses release branches that correspond to Nixpkgs releases. The nix-darwin and Nixpkgs branches in use must match, but you are currently using nix-darwin 26.11 with Nixpkgs 26.05. On macOS, you should use either the `nixpkgs-unstable` or `nixpkgs-YY.MM-darwin` branches of Nixpkgs. These correspond to the `master` and `nix-darwin-YY.MM` branches of nix-darwin, respectively. Check for the currently supported Nixpkgs releases. If you’re using flakes, make sure your inputs look like this: inputs = { nixpkgs.url = "github:NixOS/nixpkgs/NIXPKGS-BRANCH"; nix-darwin.url = "github:nix-darwin/nix-darwin/NIX-DARWIN-BRANCH"; nix-darwin.inputs.nixpkgs.follows = "nixpkgs"; # … }; If you’re using channels, you can check your current channels with: $ sudo nix-channel --list nixpkgs https://nixos.org/channels/NIXPKGS-BRANCH darwin https://github.com/nix-darwin/nix-darwin/archive/NIX-DARWIN-BRANCH.tar.gz … $ nix-channel --list … If `darwin` or `nixpkgs` are present in `nix-channel --list` (without `sudo`), you should delete them with `nix-channel --remove NAME`. These can contribute to version mismatch problems. You can then fix your channels like this: $ sudo nix-channel --add https://nixos.org/channels/NIXPKGS-BRANCH nixpkgs $ sudo nix-channel --add https://github.com/nix-darwin/nix-darwin/archive/NIX-DARWIN-BRANCH.tar.gz darwin $ sudo nix-channel --update After that, activating your system again should work correctly. If it doesn’t, please open an issue at and include as much information as possible.