summaryrefslogtreecommitdiff
path: root/examples/nixos/README.md
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2026-04-16 02:22:41 +0200
committerStefan Kreutz <mail@skreutz.com>2026-04-16 02:22:41 +0200
commit16e0d7281e12dc672ae77de4c9328c33d6cd7074 (patch)
tree0954f658b848e2f564f210952811488a3023494a /examples/nixos/README.md
parentd07eaac0131f81db0dbacfbdae211e89254e2a05 (diff)
downloadtemp-postgres-16e0d7281e12dc672ae77de4c9328c33d6cd7074.tar.gz
Add NixOS config example
Diffstat (limited to 'examples/nixos/README.md')
-rw-r--r--examples/nixos/README.md13
1 files changed, 13 insertions, 0 deletions
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"
+```
Generated by cgit. See skreutz.com for my tech blog and contact information.