-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
34 lines (32 loc) · 973 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.devenv.url = "github:cachix/devenv";
inputs.flake-parts.url = "github:hercules-ci/flake-parts";
nixConfig = {
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
extra-substituters = "https://devenv.cachix.org";
};
outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.devenv.flakeModule
];
systems = inputs.nixpkgs.lib.systems.flakeExposed;
perSystem = { config, pkgs, inputs', self', system, ... }: {
devenv.shells.default = {
packages = with pkgs; [
pkg-config
postgresql.lib
openssl.dev
sqlx-cli
];
services.postgres = {
enable = true;
package = pkgs.postgresql_15;
initialDatabases = [
{ name = "berechenbarkeit"; }
];
};
};
};
};
}