{"id":50581207,"url":"https://github.com/hyperq/nix-server","last_synced_at":"2026-06-05T02:30:55.413Z","repository":{"id":358383169,"uuid":"1241194840","full_name":"hyperq/nix-server","owner":"hyperq","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-17T04:38:31.000Z","size":605,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-17T06:43:31.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-17T04:27:09.000Z","updated_at":"2026-05-17T04:38:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hyperq/nix-server","commit_stats":null,"previous_names":["hyperq/nix-server"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/hyperq/nix-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperq%2Fnix-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperq%2Fnix-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperq%2Fnix-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperq%2Fnix-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperq","download_url":"https://codeload.github.com/hyperq/nix-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperq%2Fnix-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33927314,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-05T02:30:54.391Z","updated_at":"2026-06-05T02:30:55.395Z","avatar_url":"https://github.com/hyperq.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 nix-server\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\n一键初始化 Linux 服务器：系统加固 + Docker + Nix + 个人开发环境。\n\n专为国内服务器优化，所有依赖均使用国内镜像源。\n\n[English](README_EN.md) | 中文\n\n## ✨ 功能概览\n\n```\n[0] 📦 前置依赖      → git, curl\n[1] 🔒 系统初始化    → SSH 加固、时区、内核调优、文件描述符\n[2] 🐳 Docker       → 阿里云源安装、镜像加速、日志轮转\n[3] 🛡️ Fail2ban     → SSH 防暴力破解（3 次失败封禁 1 小时）\n[4] ❄️ Nix          → 中科大镜像单用户安装\n[5] 🪞 Nix 镜像     → USTC binary cache\n[6] 📥 拉取配置      → 通过 ghproxy 克隆本仓库\n[7] 🏠 Home Manager → Fish、Starship、Neovim 及 CLI 工具链\n```\n\n## 🏃 快速开始\n\n```bash\napt-get install -y git curl\ngit clone https://ghproxy.link/https://github.com/hyperq/nix-server.git ~/nix-server\ncd ~/nix-server \u0026\u0026 bash install.sh\n```\n\n\u003e ⚠️ **注意：** 安装后密码登录将被禁用！运行前请确保你的公钥已添加到 `~/.ssh/authorized_keys`。\n\n## 🧰 包含工具\n\n| 类别 | 工具 |\n|------|------|\n| 🐚 Shell | fish, starship, zoxide, atuin, fzf |\n| ✏️ 编辑器 | neovim (LazyVim + Catppuccin 主题) |\n| 🔧 CLI | bat, eza, fd, ripgrep, jq, yazi, bottom |\n| 🐳 Docker | lazydocker |\n\n## 📁 项目结构\n\n```\nflake.nix          → Nix Flake 入口 (nixpkgs + home-manager)\nhome.nix           → 包列表 + fish/starship 配置\ninstall.sh         → 完整服务器初始化脚本\ndotfiles/\n  ├── atuin/       → 命令历史配置\n  ├── bat/         → 语法高亮主题\n  ├── lazydocker/  → Docker TUI 配置\n  ├── nvim/        → LazyVim (Catppuccin + VSCode 键位)\n  └── yazi/        → 文件管理器配置\n```\n\n## ⚙️ 自定义\n\n| 需求 | 修改位置 |\n|------|---------|\n| 用户名/目录 | `home.nix` → `home.username` / `home.homeDirectory` |\n| 增减软件包 | `home.nix` → `home.packages` |\n| 开放端口 | `install.sh` → 防火墙区域 |\n| Docker 镜像源 | `install.sh` → `registry-mirrors`（镜像挂了就换） |\n\n## 💻 支持系统\n\n| 发行版 | 版本 |\n|--------|------|\n| 🟢 Debian | 12 / 13 |\n| 🟢 Ubuntu | 22.04+ |\n| 🟢 CentOS / RHEL | 8+ |\n| 🟢 AlmaLinux / Rocky | 8+ |\n\n## 📄 许可证\n\n[MIT](LICENSE) © 2026 hyperq\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperq%2Fnix-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperq%2Fnix-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperq%2Fnix-server/lists"}