home-lab/shell.nix
Geir O. Jerstad 47c2961033 Refactor emacs configuration and clean up lab-tool project
- Reorganized emacs configuration with profiles in modules/development/emacs.nix
- Updated machine configurations to use new emacs module structure
- Cleaned up lab-tool project by removing archive, research, testing, and utils directories
- Streamlined lab-tool to focus on core deployment functionality with deploy-rs
- Added DEVELOPMENT.md documentation for lab-tool

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-03 17:45:34 +02:00

38 lines
1.1 KiB
Nix

# Nix shell for Home Lab development with deploy-rs and lab-tool
{
description = "Home Lab dev shell with deploy-rs and lab-tool";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
deploy-rs.url = "github:serokell/deploy-rs";
};
outputs = {
self,
nixpkgs,
deploy-rs,
...
} @ inputs: let
system = "x86_64-linux";
pkgs = import nixpkgs {inherit system;};
in {
devShells.${system}.default = pkgs.mkShell {
buildInputs = [
pkgs.git
pkgs.guile_3_0
pkgs.guile-ssh
pkgs.guile-json
pkgs.guile-git
pkgs.guile-gcrypt
pkgs.openssh
pkgs.nixos-rebuild
deploy-rs.packages.${system}.deploy-rs
(import ./packages/lab-tool/default.nix {inherit (pkgs) lib stdenv makeWrapper guile_3_0 guile-ssh guile-json guile-git guile-gcrypt openssh git nixos-rebuild;})
];
shellHook = ''
echo "Dev shell: deploy-rs and lab-tool available."
echo "Try: lab status, lab deploy <machine>, or deploy . <target>"
'';
};
};
}