diff options
| author | Stefan Kreutz <mail@skreutz.com> | 2026-04-16 02:22:41 +0200 |
|---|---|---|
| committer | Stefan Kreutz <mail@skreutz.com> | 2026-04-16 02:22:41 +0200 |
| commit | 16e0d7281e12dc672ae77de4c9328c33d6cd7074 (patch) | |
| tree | 0954f658b848e2f564f210952811488a3023494a /examples/nixos/README.md | |
| parent | d07eaac0131f81db0dbacfbdae211e89254e2a05 (diff) | |
| download | temp-postgres-16e0d7281e12dc672ae77de4c9328c33d6cd7074.tar.gz | |
Add NixOS config example
Diffstat (limited to 'examples/nixos/README.md')
| -rw-r--r-- | examples/nixos/README.md | 13 |
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" +``` |