Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 { nixpkgs ? import <nixpkgs> {} }:
- 2 let
- 3 inherit (nixpkgs) pkgs;
- 4 inherit (pkgs) haskellPackages;
- 5
- 6 project = import ./release.nix;
- 7 in
- 8 pkgs.stdenv.mkDerivation {
- 9 name = "shell";
- 10 buildInputs = project.env.nativeBuildInputs ++ [
- 11 haskellPackages.cabal-install
- 12 haskellPackages.yesod-bin
- 13 pkgs.cabal2nix
- 14 pkgs.nix
- 15 pkgs.postgresql
- 16 (import ~/.config/nixpkgs/vim.nix)
- 17 ];
- 18 };
- 19
- 20 systemd.user.services.work_postgres = {
- 21 Unit = { Description = "work postgres"; };
- 22 Service = {
- 23 WorkingDirectory = "./db";
- 24
- 25 ExecStart =
- 26 "${pkgs.postgresql}/bin/postgres -D ./.postgres/data -k ./.postgres/run";
- 27 Restart = "always";
- 28 };
- 29 };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement