Add a development shell for this project

This commit is contained in:
foo-dogsquared 2022-01-01 20:14:50 +08:00
parent 69225a0ceb
commit c96889b62e
2 changed files with 9 additions and 0 deletions

View File

@ -134,6 +134,10 @@
packages = forAllSystems packages = forAllSystems
(system: import ./pkgs { pkgs = import nixpkgs { inherit system; }; }); (system: import ./pkgs { pkgs = import nixpkgs { inherit system; }; });
# The development environment for this flake.
devShell = forAllSystems (system:
import ./shell.nix { pkgs = import nixpkgs { inherit system; }; });
# My several development shells for usual type of projects. This is much # My several development shells for usual type of projects. This is much
# more preferable than installing all of the packages at the system # more preferable than installing all of the packages at the system
# configuration (or even home environment). # configuration (or even home environment).

5
shell.nix Normal file
View File

@ -0,0 +1,5 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
packages = with pkgs; [ git git-crypt nixfmt ];
}