2023-06-23 06:33:04 +00:00
|
|
|
import { defineConfig } from 'vitepress'
|
|
|
|
|
|
|
|
// https://vitepress.dev/reference/site-config
|
|
|
|
export default defineConfig({
|
|
|
|
locales: {
|
|
|
|
root: {
|
|
|
|
label: "English",
|
|
|
|
lang: "en",
|
|
|
|
link: "/",
|
|
|
|
title: "NixOS & Flakes Book",
|
|
|
|
description: "An unofficial book for beginners",
|
2023-06-23 10:05:06 +00:00
|
|
|
|
|
|
|
themeConfig: {
|
|
|
|
// https://vitepress.dev/reference/default-theme-config
|
|
|
|
nav: [
|
|
|
|
{ text: "Home", link: "/" },
|
|
|
|
{ text: "Get Started", link: "/introduction/index.md" },
|
|
|
|
{ text: "Best Pracetice", link: "/best-practices/index.md" },
|
|
|
|
],
|
|
|
|
|
|
|
|
sidebar: [
|
|
|
|
{
|
|
|
|
text: "Get Started",
|
|
|
|
items: [
|
|
|
|
{ text: "Introduction", link: "/introduction/index.md" },
|
|
|
|
{
|
|
|
|
text: "Advantages and Disadvantages",
|
|
|
|
link: "/introduction/advantages-and-disadvantages.md",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "Installation",
|
|
|
|
link: "/introduction/installation.md",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "The Nix Language",
|
|
|
|
items: [{ text: "Basics", link: "/the-nix-language/index.md" }],
|
|
|
|
},
|
2023-06-23 12:29:12 +00:00
|
|
|
{
|
|
|
|
text: "NixOS with Flakes",
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
text: "Get Started with NixOS",
|
|
|
|
link: "/nixos-with-flakes/get-started-with-nixos.md",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "Introduction to Flakes",
|
|
|
|
link: "/nixos-with-flakes/introduction-to-flakes.md",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "NixOS with Flakes enabled",
|
|
|
|
link: "/nixos-with-flakes/get-started-with-flakes.md",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "Started using Home Manager",
|
|
|
|
link: "/nixos-with-flakes/start-using-home-manager.md",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "Modularize the Configuration",
|
|
|
|
link: "/nixos-with-flakes/modularize-the-configuration.md",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "Update the System",
|
|
|
|
link: "/nixos-with-flakes/update-the-system.md",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "Upgrade or Downgrade Packages",
|
|
|
|
link: "/nixos-with-flakes/upgrade-or-downgrade-packages.md",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "Other useful Tips",
|
|
|
|
link: "/nixos-with-flakes/other-useful-tips.md",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2023-06-23 10:05:06 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
socialLinks: [
|
|
|
|
{
|
|
|
|
icon: "github",
|
|
|
|
link: "https://github.com/ryan4yin/nixos-and-flakes-book",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2023-06-23 06:33:04 +00:00
|
|
|
},
|
|
|
|
zh: {
|
|
|
|
label: "简体中文",
|
|
|
|
lang: "zh-CN",
|
|
|
|
link: "/zh/",
|
|
|
|
title: "NixOS 与 Flakes",
|
|
|
|
description: "一份非官方的新手指南",
|
|
|
|
|
2023-06-23 10:05:06 +00:00
|
|
|
themeConfig: {
|
|
|
|
// https://vitepress.dev/reference/default-theme-config
|
|
|
|
nav: [
|
|
|
|
{ text: "Home", link: "/zh/" },
|
|
|
|
{ text: "Get Started", link: "/zh/introduction/index.md" },
|
|
|
|
{ text: "Best Pracetice", link: "/zh/best-practices/index.md" },
|
|
|
|
],
|
2023-06-23 06:33:04 +00:00
|
|
|
|
2023-06-23 10:05:06 +00:00
|
|
|
sidebar: [
|
|
|
|
{
|
|
|
|
text: "开始使用",
|
|
|
|
items: [
|
|
|
|
{ text: "简介", link: "/zh/introduction/index.md" },
|
|
|
|
{
|
|
|
|
text: "优缺点",
|
|
|
|
link: "/zh/introduction/advantages-and-disadvantages.md",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "安装",
|
|
|
|
link: "/zh/introduction/installation.md",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "Nix 语言",
|
2023-06-23 12:29:12 +00:00
|
|
|
items: [
|
|
|
|
{ text: "快速入门", link: "/zh/the-nix-language/index.md" },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
text: "NixOS 与 Flakes",
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
text: "开始使用 NixOS",
|
2023-06-23 13:26:48 +00:00
|
|
|
link: "/zh/nixos-with-flakes/get-started-with-nixos.md",
|
2023-06-23 12:29:12 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "Flakes 简介",
|
2023-06-23 13:26:48 +00:00
|
|
|
link: "/zh/nixos-with-flakes/introduction-to-flakes.md",
|
2023-06-23 12:29:12 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "使用 Flakes 管理 NixOS",
|
2023-06-23 13:26:48 +00:00
|
|
|
link: "/zh/nixos-with-flakes/get-started-with-flakes.md",
|
2023-06-23 12:29:12 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "开始使用 Home Manager",
|
2023-06-23 13:26:48 +00:00
|
|
|
link: "/zh/nixos-with-flakes/start-using-home-manager.md",
|
2023-06-23 12:29:12 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "模块化系统配置",
|
2023-06-23 13:26:48 +00:00
|
|
|
link: "/zh/nixos-with-flakes/modularize-the-configuration.md",
|
2023-06-23 12:29:12 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "更新系统",
|
2023-06-23 13:26:48 +00:00
|
|
|
link: "/zh/nixos-with-flakes/update-the-system.md",
|
2023-06-23 12:29:12 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "升级或降级软件包",
|
2023-06-23 13:26:48 +00:00
|
|
|
link: "/zh/nixos-with-flakes/upgrade-or-downgrade-packages.md",
|
2023-06-23 12:29:12 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "其他杂七杂八的内容",
|
2023-06-23 13:26:48 +00:00
|
|
|
link: "/zh/nixos-with-flakes/other-useful-tips.md",
|
2023-06-23 12:29:12 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "Nixpkgs 高级用法",
|
|
|
|
items: [{ text: "快速入门", link: "/zh/nixpkgs/index.md" }],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "NixOS 最佳实践",
|
|
|
|
items: [{ text: "快速入门", link: "/zh/best-practices/index.md" }],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "Flakes 的其他玩法",
|
|
|
|
items: [{ text: "快速入门", link: "/zh/nixpkgs/index.md" }],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
text: "其他进阶话题",
|
|
|
|
items: [{ text: "快速入门", link: "/zh/nixpkgs/index.md" }],
|
2023-06-23 10:05:06 +00:00
|
|
|
},
|
|
|
|
],
|
2023-06-23 06:33:04 +00:00
|
|
|
|
2023-06-23 10:05:06 +00:00
|
|
|
socialLinks: [
|
|
|
|
{
|
|
|
|
icon: "github",
|
|
|
|
link: "https://github.com/ryan4yin/nixos-and-flakes-book",
|
|
|
|
},
|
|
|
|
],
|
2023-06-23 06:33:04 +00:00
|
|
|
},
|
2023-06-23 10:05:06 +00:00
|
|
|
},
|
2023-06-23 06:33:04 +00:00
|
|
|
},
|
|
|
|
});
|