fix template to make it compatible with nix