pikers / piker

(e2e) foss trading for non-tinas
GNU Affero General Public License v3.0
102 stars 17 forks source link

NixOS development envoirment #456

Closed guilledk closed 1 year ago

guilledk commented 1 year ago

Add development shell environment file for devs on NixOS.

To load shell run:

nix-shell develop.nix

The shell will create a virtualenv and load it automaticaly, once inside proceed with the regular piker development install:

pip install -e . -r requirements.txt

In case you get a filesystem error about not enough space try increasing the tmpfs partition size, if using systemd can be done by logind config by adding the following to the system's .nix configuration:

  services.logind.extraConfig = ''
    RuntimeDirectorySize=50%
  '';

This will increase tmpfs partition size to 50% of ram, which should be alright for most cases (4GB of ram+).

goodboy commented 1 year ago

Ahh one of them brooklyn style envoirments ehh?