flake: move 'devShells' to 'flake/'
This commit is contained in:
parent
fc02519c4f
commit
1ae2bca445
3 changed files with 19 additions and 12 deletions
17
flake/dev-shells.nix
Normal file
17
flake/dev-shells.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ self, nixpkgs, ... }:
|
||||
system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
name = "NixOS-config";
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
gitAndTools.pre-commit
|
||||
nixpkgs-fmt
|
||||
];
|
||||
|
||||
inherit (self.checks.${system}.pre-commit) shellHook;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue