From 22f5ac8fcec4dbfcc1f5033f18bc4eeca52a747d Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Tue, 31 Oct 2023 08:20:22 +0100 Subject: Made the side more retro! --- public/development-environments-with-nix.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'public/development-environments-with-nix.html') diff --git a/public/development-environments-with-nix.html b/public/development-environments-with-nix.html index 207a90a..6c0057b 100755 --- a/public/development-environments-with-nix.html +++ b/public/development-environments-with-nix.html @@ -1,9 +1,12 @@ -Development environments with Nix

Development environments with Nix

note, Jun 25, 2023 on Mitja Felicijan's blog

Nix is amazing for making reproducible cross OS development environment.

First you need to install Nix package manager.

  • Create a file shell.nix in your project folder.
  • In the section that has python3 etc add programs you want to use. These can be CLI or GUI applications. It doesn't matter to Nix.
{ pkgs ? import <nixpkgs> {} }:
   pkgs.mkShell {
@@ -33,7 +36,7 @@ usage of Nix shell.

 export PS1="[\033[38;5;9m\]\u@\h\[$(tput sgr0)\]]$(is_inside_nix_shell)\[\033[33m\]\$(parse_git_branch)\[\033[00m\] \w\[$(tput sgr0)\] \n$ "
 

And this is what it looks like when you are in a Nix shell. Otherwise that part -of prompt is omitted

PS1 Prompt

More resources:


Posts from blogs I follow around the net