flake: dev-shells: convert to 'flake-parts'
This commit is contained in:
parent
e1e6c39bf1
commit
2b969f7726
2 changed files with 13 additions and 14 deletions
|
|
@ -1,17 +1,17 @@
|
|||
{ self, nixpkgs, ... }:
|
||||
system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{ inputs, ... }:
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
name = "NixOS-config";
|
||||
perSystem = { self', pkgs, ... }: {
|
||||
devShells = {
|
||||
default = pkgs.mkShell {
|
||||
name = "NixOS-config";
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
gitAndTools.pre-commit
|
||||
nixpkgs-fmt
|
||||
];
|
||||
nativeBuildInputs = with pkgs; [
|
||||
gitAndTools.pre-commit
|
||||
nixpkgs-fmt
|
||||
];
|
||||
|
||||
inherit (self.checks.${system}.pre-commit) shellHook;
|
||||
inherit (self'.checks.pre-commit) shellHook;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue