Issue
New recommended location for darwin flake is in /etc/nix-darwin which causes unexpected behavior if following video as verbatim tutorial.
If you want, update pinned comment to alert viewers to this change.
Relevant update to nix-darwin
sudo mkdir -p /etc/nix-darwin
sudo chown $(id -nu):$(id -ng) /etc/nix-darwin
cd /etc/nix-darwin
# To use Nixpkgs unstable:
nix flake init -t nix-darwin/master
# To use Nixpkgs 25.05:
nix flake init -t nix-darwin/nix-darwin-25.05
sed -i '' "s/simple/$(scutil --get LocalHostName)/" flake.nix
Others have been running into this issue too:
