From 16e0d7281e12dc672ae77de4c9328c33d6cd7074 Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Thu, 16 Apr 2026 02:22:41 +0200 Subject: Add NixOS config example --- examples/nixos/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 examples/nixos/README.md (limited to 'examples/nixos/README.md') diff --git a/examples/nixos/README.md b/examples/nixos/README.md new file mode 100644 index 0000000..ea6b9f4 --- /dev/null +++ b/examples/nixos/README.md @@ -0,0 +1,13 @@ +# 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" +``` -- cgit v1.3