setup shell.nix + direnv

This commit is contained in:
♥ Minnie ♥ 2023-07-25 11:12:02 +08:00
parent da9853bc31
commit cb2916802c
5 changed files with 11 additions and 0 deletions

View file

@ -51,6 +51,7 @@
# Extra commands that should be added to '.zshrc' # Extra commands that should be added to '.zshrc'
initExtra = '' initExtra = ''
eval "$(direnv hook zsh)"
source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh
PROMPT='%F{blue}%n %F{cyan}%~ %F{red} %f'; PROMPT='%F{blue}%n %F{cyan}%~ %F{red} %f';
''; '';

View file

@ -0,0 +1 @@
use_nix

View file

@ -0,0 +1,4 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages; [ cabal-install ghc ];
}

View file

@ -0,0 +1 @@
use_nix

View file

@ -0,0 +1,4 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs.buildPackages; [ cabal-install ghc ];
}