Poetry on NixOS
Poetry on NixOS require some configuration and initial setup. Basically I use nix-shell with some minimal configuration.
First I create shell.nix file:
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = [
pkgs.python3
pkgs.poetry
];
}Then I activate it and start my editor
cd project_where_shell_nix_is_located
nix-shell
# optional initialize poetry configuration:
# poetry new .
# optional install poetry dependencies:
# poetry install
nvim # or (pycharm-community . &) to start pycharm and allow close terminal