Add devshell

This commit is contained in:
Greg Hellings
2023-06-28 23:10:07 -05:00
parent e3babb3ac8
commit 581d51382c
4 changed files with 18 additions and 0 deletions
+14
View File
@@ -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; }; overlays = { default = local_overlay; };
modules = (import ./modules-all {}) // modules = (import ./modules-all {}) //
(import ./modules-linux {}) // (import ./modules-linux {}) //
+1
View File
@@ -73,6 +73,7 @@ in rec {
hms = prev.callPackage ./hms.nix { hms = prev.callPackage ./hms.nix {
pkgs = final.pkgs; pkgs = final.pkgs;
}; };
inject = prev.callPackage ./inject.nix { inherit (final) pkgs; };
setup-ssh = prev.callPackage ./setup-ssh.nix { setup-ssh = prev.callPackage ./setup-ssh.nix {
pkgs = final.pkgs; pkgs = final.pkgs;
}; };
+3
View File
@@ -0,0 +1,3 @@
{ pkgs, ... }:
pkgs.writeShellScriptBin "inject-nixos-config" (builtins.readFile ./inject.sh)
View File