As far as I know, disnix is just for Nix. Packer creates machine images for multiple platforms. It would make sense, if you were building a machine image for Nix, perhaps, that you would use this. But for an Ubuntu machine, you can't really. Unless I'm mistaken.