Add nix / direnv setup
This commit is contained in:
parent
ae3b173f3f
commit
9dcb36612d
34
default.nix
Normal file
34
default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
let
|
||||
unstableTarball = fetchTarball
|
||||
"https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
|
||||
pkgs = import <nixpkgs> { };
|
||||
unstable = import unstableTarball { };
|
||||
|
||||
in with pkgs;
|
||||
pkgs.mkShell rec {
|
||||
name = "rust";
|
||||
buildInputs = [
|
||||
entr
|
||||
openssl
|
||||
pkg-config
|
||||
unstable.cargo
|
||||
unstable.rustc
|
||||
unstable.rustfmt
|
||||
unstable.rust-analyzer
|
||||
postgresql
|
||||
diesel-cli
|
||||
];
|
||||
# By default setup dev environment.
|
||||
AWS_ACCESS_KEY_ID = "0BO8BCZZXV3SFZ1B43W1";
|
||||
AWS_SECRET_ACCESS_KEY = "x6SjXJZuP1tMzxH/a6xEFDcMw4XB8qCfRPNbuGzN";
|
||||
DATABASE_USER = "comics_devel";
|
||||
DATABASE_NAME = "comics_devel";
|
||||
DATABASE_HOST = "postgres.h.xinu.tv";
|
||||
DATABASE_URL =
|
||||
"postgres://${DATABASE_USER}@${DATABASE_HOST}/${DATABASE_NAME}";
|
||||
PROD_DATABASE_USER = "comics";
|
||||
PROD_DATABASE_NAME = "comics";
|
||||
PROD_DATABASE_HOST = "postgres.h.xinu.tv";
|
||||
PROD_DATABASE_URL =
|
||||
"postgres://${PROD_DATABASE_USER}@${PROD_DATABASE_HOST}/${PROD_DATABASE_NAME}";
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user