flake: move 'devShells' to 'flake/'
This commit is contained in:
parent
fc02519c4f
commit
1ae2bca445
1
.envrc
1
.envrc
|
@ -5,5 +5,6 @@ fi
|
|||
use flake
|
||||
|
||||
watch_file ./flake/checks.nix
|
||||
watch_file ./flake/dev-shells.nix
|
||||
|
||||
eval "$shellHooks"
|
||||
|
|
13
flake.nix
13
flake.nix
|
@ -122,18 +122,7 @@
|
|||
|
||||
checks = import ./flake/checks.nix inputs system;
|
||||
|
||||
devShells = {
|
||||
default = pkgs.mkShell {
|
||||
name = "NixOS-config";
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
gitAndTools.pre-commit
|
||||
nixpkgs-fmt
|
||||
];
|
||||
|
||||
inherit (self.checks.${system}.pre-commit) shellHook;
|
||||
};
|
||||
};
|
||||
devShells = import ./flake/dev-shells.nix inputs system;
|
||||
|
||||
packages =
|
||||
let
|
||||
|
|
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…
Reference in a new issue