- Update opencode from v1.1.48 to v1.1.51 - Refactor build dependencies: remove fzf, add sysctl conditionally for Darwin - Fix bun to use nixpkgs-unstable input instead of direct dependency - Add platform-specific outputHash for Darwin and Linux - Move wrapProgram from postFixup to installPhase - Remove unnecessary build patch and postPatch/postBuild workarounds - Fix config path to use absolute home directory - Add git and home-manager to default shell inputs - Minor README documentation reordering
34 lines
581 B
Nix
34 lines
581 B
Nix
{ pkgs, ... }:
|
|
|
|
let
|
|
sync-repo = pkgs.writeShellScriptBin "sync-repo" ''
|
|
if [ -z "$1" ]; then
|
|
echo "Usage: sync-repo <ip-address>"
|
|
echo "Example: sync-repo 23.29.118.42"
|
|
exit 1
|
|
fi
|
|
|
|
rsync -av \
|
|
--exclude='.git' \
|
|
--exclude='.direnv' \
|
|
--exclude='_scratch' \
|
|
. evanreichard@$1:/etc/nixos
|
|
'';
|
|
in
|
|
pkgs.mkShell {
|
|
name = "reichard-dev";
|
|
|
|
buildInputs = with pkgs; [
|
|
age
|
|
git
|
|
home-manager
|
|
rsync
|
|
ssh-to-age
|
|
sync-repo
|
|
];
|
|
|
|
shellHook = ''
|
|
echo "Use: sync-repo <ip-address> to sync repository"
|
|
'';
|
|
}
|