diff --git a/flake.nix b/flake.nix index 5d09188..052dec8 100644 --- a/flake.nix +++ b/flake.nix @@ -68,6 +68,20 @@ } ); + devShell = (flake-utils.lib.eachSystemMap flake-utils.lib.allSystems (system: let + pkgs = import nixunstable { inherit system overlays; }; + in pkgs.mkShell { + buildInputs = with pkgs; [ + bashInteractive + curl + gzip + inject + sudo + tar + xonsh + ]; + })); + overlays = { default = local_overlay; }; modules = (import ./modules-all {}) // (import ./modules-linux {}) // diff --git a/overlays/default.nix b/overlays/default.nix index d374235..811474d 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -73,6 +73,7 @@ in rec { hms = prev.callPackage ./hms.nix { pkgs = final.pkgs; }; + inject = prev.callPackage ./inject.nix { inherit (final) pkgs; }; setup-ssh = prev.callPackage ./setup-ssh.nix { pkgs = final.pkgs; }; diff --git a/overlays/inject.nix b/overlays/inject.nix new file mode 100644 index 0000000..b59111c --- /dev/null +++ b/overlays/inject.nix @@ -0,0 +1,3 @@ +{ pkgs, ... }: + +pkgs.writeShellScriptBin "inject-nixos-config" (builtins.readFile ./inject.sh) diff --git a/inject.sh b/overlays/inject.sh similarity index 100% rename from inject.sh rename to overlays/inject.sh