|
25 | 25 |
|
26 | 26 |
|
27 | 27 | <details> |
28 | | -<summary style="font-size: 1.4em; font-weight: bold; padding: 15px; background: #667eea; color: white; border-radius: 10px; cursor: pointer; margin: 10px 0;"><strong> <meta http-equiv="content-type" content="text/html; charset=utf-8"><img src="https://www.debian.org/logos/openlogo-75.jpg" alt="" width="75" height="92">How to get Down with Debian</strong></summary> |
29 | | -<blockquote style="font-size: 1.2em; line-height: 1.8; padding: 25px; background: #f8f9fa; border-left: 6px solid #667eea; border-radius: 8px; margin: 15px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1);"> |
| 28 | + <summary style="font-size: 1.4em; font-weight: bold; padding: 15px; background: #667eea; color: white; border-radius: 10px; cursor: pointer; margin: 10px 0;"> |
| 29 | + <strong>▶️ Qompass AI Quick Start</strong> |
| 30 | + </summary> |
| 31 | + <div style="background: #f8f9fa; padding: 15px; border-radius: 5px; margin-top: 10px; font-family: monospace;"> |
| 32 | + |
| 33 | +```bash |
| 34 | +bash <(curl -L https://raw.githubusercontent.com/qompassai/dotfiles/main/scripts/quickstart.sh) |
| 35 | +``` |
| 36 | + </div> |
| 37 | + <blockquote style="font-size: 1.2em; line-height: 1.8; padding: 25px; background: #f8f9fa; border-left: 6px solid #667eea; border-radius: 8px; margin: 15px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1);"> |
| 38 | + <details> |
| 39 | + <summary style="font-size: 1em; font-weight: bold; padding: 10px; background: #e9ecef; color: #333; border-radius: 5px; cursor: pointer; margin: 10px 0;"> |
| 40 | + <strong>📄 We advise you read the script BEFORE running it 😉</strong> |
| 41 | + </summary> |
| 42 | + <pre style="background: #fff; padding: 15px; border-radius: 5px; border: 1px solid #ddd; overflow-x: auto;"> |
| 43 | +#!/usr/bin/env bash |
| 44 | +# /qompassai/dotfiles/scripts/quickstart.sh |
| 45 | +# Qompass AI Quick Start Script |
| 46 | +# Copyright (C) 2025 Qompass AI, All rights reserved |
| 47 | +#################################################### |
| 48 | + |
| 49 | +REPO="https://github.com/qompassai/dotfiles" |
| 50 | +TARGET_DIR="$HOME/.dotfiles" |
| 51 | +if [ -d "$TARGET_DIR" ]; then |
| 52 | + echo "Removing existing dotfiles directory..." |
| 53 | + rm -rf "$TARGET_DIR" |
| 54 | +fi |
| 55 | +echo "Cloning Qompass AI Dotfiles..." |
| 56 | +git clone "$REPO" "$TARGET_DIR" |
| 57 | +echo "Setting up symlinks..." |
| 58 | +mkdir -p "$HOME/.config/nix" "$HOME/.profile.d" |
| 59 | +ln -sf "$TARGET_DIR/.config/nix/nix.conf" "$HOME/.config/nix/nix.conf" |
| 60 | +ln -sf "$TARGET_DIR/.profile.d/67-nix.sh" "$HOME/.profile.d/67-nix.sh" |
| 61 | +mkdir -p "$HOME/.config" |
| 62 | +ln -sfn "$TARGET_DIR/home" "$HOME/.config/home" 2>/dev/null || true |
| 63 | +ln -sfn "$TARGET_DIR/.local" "$HOME/.local" 2>/dev/null || true |
| 64 | +ln -sf "$TARGET_DIR/flake.nix" "$HOME/.config/flake.nix" 2>/dev/null || true |
| 65 | +source "$HOME/.profile.d/67-nix.sh" 2>/dev/null || { |
| 66 | + echo "WARNING: Could not source Nix profile configuration. Falling back to manual exporting" |
| 67 | + export NIX_CONF_DIR="$HOME/.config/nix" |
| 68 | + export NIX_STORE_DIR="$HOME/.nix/store" |
| 69 | + export NIX_STATE_DIR="$HOME/.local/state/nix" |
| 70 | + export NIX_LOG_DIR="$HOME/.local/state/nix/log" |
| 71 | + export NIX_PROFILE_DIR="$HOME/.nix-profile" |
| 72 | + export PATH="$NIX_PROFILE_DIR/bin:$PATH" |
| 73 | +} |
| 74 | +if ! command -v nix >/dev/null; then |
| 75 | + echo "Installing Nix with custom configuration..." |
| 76 | + mkdir -p /.nix/var/nix/{profiles,gcroots,db} |
| 77 | + chown -R "$(whoami)" /.nix |
| 78 | + sh <(curl -L https://nixos.org/nix/install) --daemon \ |
| 79 | + --nix-extra-conf-file "$NIX_CONF_DIR/nix.conf" |
| 80 | + if [ -f '/.nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then |
| 81 | + . '/.nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' |
| 82 | + fi |
| 83 | +fi |
| 84 | +echo "Setting up Nix environment..." |
| 85 | +cd "$TARGET_DIR" |
| 86 | +nix flake update |
| 87 | +detect_shell() { |
| 88 | + case "$(ps -p $$ -o comm=)" in |
| 89 | + *bash*) echo "bash" ;; |
| 90 | + *zsh*) echo "zsh" ;; |
| 91 | + *fish*) echo "fish" ;; |
| 92 | + *) echo "bash" ;; |
| 93 | + esac |
| 94 | +} |
| 95 | +USER_SHELL=$(detect_shell) |
| 96 | +echo "Detected shell: $USER_SHELL" |
| 97 | +nix develop --command "$USER_SHELL" |
| 98 | + </pre> |
| 99 | + </details> |
| 100 | + <p>Or, <a href="https://github.com/qompassai/dotfiles/blob/main/scripts/quickstart.sh" target="_blank">View the quickstart script</a>.</p> |
| 101 | + </blockquote> |
| 102 | +</details> |
30 | 103 |
|
31 | 104 | </blockquote> |
32 | 105 | </details> |
|
0 commit comments