Ajout devshell nix

cephiroth
pigeonmoelleux 2024-02-03 19:21:00 +01:00
parent fa848ef713
commit be1b1a6188
No known key found for this signature in database
GPG Key ID: B3BE02E379E6E8E2
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,10 @@
{ pkgs }:
pkgs.mkShell {
name = "nix";
packages = with pkgs; [
nil
nixpkgs-fmt
];
}

View File

@ -22,11 +22,15 @@
flake = { };
perSystem = { config, ... }: {
perSystem = { config, pkgs, ... }: {
treefmt = {
projectRootFile = "flake.nix";
programs.nixpkgs-fmt.enable = true;
};
devShells = {
default = pkgs.callPackage ./devshells/default.nix { };
};
};
};
}