Initial commit: NixOS flake with Cursor 1.3.9

- Complete NixOS configuration with Cursor AppImage
- Development environment with Node.js, Python, Rust
- Modern shell setup with Zsh and Starship
- AppImage support and desktop integration
- Comprehensive documentation and quick start guide
This commit is contained in:
thinktankmachine
2025-08-06 10:08:03 +10:00
commit b1fb7eb124
11 changed files with 823 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
#!/usr/bin/env bash
# Script to update the SHA256 hash for Cursor AppImage
# Run this script to get the correct hash and update home.nix
set -e
echo "Fetching SHA256 hash for Cursor 1.3.9 AppImage..."
echo ""
# Get the hash
HASH=$(nix-prefetch-url https://downloads.cursor.com/production/54c27320fab08c9f5dd5873f07fca101f7a3e076/linux/x64/Cursor-1.3.9-x86_64.AppImage)
echo "SHA256 hash: $HASH"
echo ""
echo "Please update the hash in home.nix:"
echo "Replace the placeholder hash with:"
echo "sha256 = \"$HASH\";"
echo ""
echo "You can do this manually or run:"
echo "sed -i 's/sha256 = \"sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\";/sha256 = \"$HASH\";/' home.nix"
echo ""
# Optionally update the file automatically
read -p "Do you want to update home.nix automatically? (y/N): " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
sed -i "s/sha256 = \"sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\";/sha256 = \"$HASH\";/" home.nix
echo "Updated home.nix with the correct hash!"
else
echo "Please update home.nix manually with the hash above."
fi