diff --git a/flake.lock b/flake.lock index 546ce4c..2656b32 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,25 @@ { "nodes": { + "devshell": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1741473158, + "narHash": "sha256-kWNaq6wQUbUMlPgw8Y+9/9wP0F8SHkjy24/mN3UAppg=", + "owner": "numtide", + "repo": "devshell", + "rev": "7c9e793ebe66bcba8292989a68c0419b737a22a0", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "devshell", + "type": "github" + } + }, "flake-parts": { "inputs": { "nixpkgs-lib": [ @@ -69,6 +89,7 @@ }, "root": { "inputs": { + "devshell": "devshell", "flake-parts": "flake-parts", "import-tree": "import-tree", "nixpkgs": "nixpkgs", diff --git a/flake.nix b/flake.nix index 0aee0ac..64dfdc1 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,8 @@ { inputs = { + devshell.inputs.nixpkgs.follows = "nixpkgs"; + devshell.url = "github:numtide/devshell"; + flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs"; flake-parts.url = "github:hercules-ci/flake-parts"; @@ -19,12 +22,16 @@ commonPhpPackages = pkgs: with pkgs; [ phpactor ]; }; - imports = [ (inputs.import-tree ./modules) ]; + imports = [ + inputs.devshell.flakeModule + + (inputs.import-tree ./modules) + ]; perSystem = { pkgs, ... }: { - devShells.default = pkgs.mkShell { + devshells.default = { packages = with pkgs; [ nixd ]; }; };