Skip to content

Instantly share code, notes, and snippets.

@adithyaov
Created August 14, 2025 19:20
Show Gist options
  • Select an option

  • Save adithyaov/1f4ddb0616730c2f5b16a857651209af to your computer and use it in GitHub Desktop.

Select an option

Save adithyaov/1f4ddb0616730c2f5b16a857651209af to your computer and use it in GitHub Desktop.
Flake providing Postgres 14
{
description = "Flake providing Postgres 14";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/branch-off-24.11";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux"; # change if needed
pkgs = import nixpkgs { inherit system; };
in
{
packages.postgres14 = pkgs.postgresql_14;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment