Auto-switch to type='source' on nix machines