flake: dev-shells: convert to 'flake-parts'
This commit is contained in:
parent
e1e6c39bf1
commit
2b969f7726
|
@ -26,8 +26,6 @@ let
|
||||||
default = self.apps.${system}.diff-flake;
|
default = self.apps.${system}.diff-flake;
|
||||||
};
|
};
|
||||||
|
|
||||||
devShells = import ./dev-shells.nix inputs system;
|
|
||||||
|
|
||||||
packages = import ./packages.nix inputs system;
|
packages = import ./packages.nix inputs system;
|
||||||
|
|
||||||
# Work-around for https://github.com/nix-community/home-manager/issues/3075
|
# Work-around for https://github.com/nix-community/home-manager/issues/3075
|
||||||
|
@ -73,6 +71,7 @@ flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./checks.nix
|
./checks.nix
|
||||||
|
./dev-shells.nix
|
||||||
./lib.nix
|
./lib.nix
|
||||||
./nixos.nix
|
./nixos.nix
|
||||||
./overlays.nix
|
./overlays.nix
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
{ self, nixpkgs, ... }:
|
{ inputs, ... }:
|
||||||
system:
|
|
||||||
let
|
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
default = pkgs.mkShell {
|
perSystem = { self', pkgs, ... }: {
|
||||||
name = "NixOS-config";
|
devShells = {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
name = "NixOS-config";
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
gitAndTools.pre-commit
|
gitAndTools.pre-commit
|
||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
];
|
];
|
||||||
|
|
||||||
inherit (self.checks.${system}.pre-commit) shellHook;
|
inherit (self'.checks.pre-commit) shellHook;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue