# NixOS example This example shows how to install `temp-postgres` on NixOS using Nix flakes. You can actually run this configuration as a virtual machine on QEMU: ```sh # Use the latest version of temp-postgres. nix run ".#nixosConfigurations.myhost.config.system.build.vm" # Use the worktree version of temp-postgres. nix run --override-input temp-postgres ../.. ".#nixosConfigurations.myhost.config.system.build.vm" ```