From 0beb01625b63a465273c525489eec7e29c6c090a Mon Sep 17 00:00:00 2001 From: ryan4yin Date: Sun, 30 Jun 2024 15:38:06 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20NixOS-CN?= =?UTF-8?q?/nixos-cn.github.io@112224ac58dcc1c720638a52ea9a14ac4d3fdcdf=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 8 +-- ....html-aJVSI8g5.js => 404.html-7q9hhSdq.js} | 2 +- ...naryAndSourceDistribution.html-16kgxc39.js | 2 - ...naryAndSourceDistribution.html-C-rtSMVZ.js | 2 + ...PvFv.js => Configuration.html-CE9jQ0tW.js} | 31 ++++++----- ...IsTheBlueprintOfTheSystem.html-Dttpxv9Y.js | 1 - ...IsTheBlueprintOfTheSystem.html-djsOJ9Vw.js | 1 + ...nalProgrammingShapesNixOS.html-DZ_IJvjM.js | 8 --- ...nalProgrammingShapesNixOS.html-rr2UlYus.js | 8 +++ ...ath-dependentProgramsWork.html-D2834t8G.js | 1 + ...ath-dependentProgramsWork.html-NhUUpgrU.js | 1 - assets/Intro.html-CEuRkNVT.js | 52 +++++++++++++++++++ assets/Intro.html-CsM-htdy.js | 52 ------------------- ...l-BZkwlMGp.js => Manuals.html-DFp7igCI.js} | 4 +- ...vk50dn3.js => Networking.html-D__jtwiK.js} | 4 +- ...urityIsOurUltimatePursuit.html-BDKKUkcr.js | 21 -------- ...urityIsOurUltimatePursuit.html-BJhNv_7j.js | 21 ++++++++ ...QSVs.js => QuickOverview.html-BSo4J38r.js} | 38 ++++++-------- ...t-NWjACjSk.js => SearchResult-B0cgczV8.js} | 2 +- ...B9GmW8h7.js => Subsystem.html-DSYLh798.js} | 28 +++++----- ...kj3.js => VirtualMachine.html-dR4GRz3A.js} | 16 +++--- assets/WSL2.html-B1QMWOGS.js | 7 +++ assets/WSL2.html-DbTShrQz.js | 7 --- assets/{app-KtH3BPxJ.js => app-BNkVxcYY.js} | 6 +-- assets/{arc-D7LfjWVZ.js => arc-CCBbLdcJ.js} | 2 +- ...c.js => blockDiagram-91b80b7a-BBC8OS1A.js} | 2 +- ...z_Mb.js => c4Diagram-b2a90758-Dz5AbReI.js} | 2 +- assets/channel-BjR0DzJB.js | 1 + assets/channel-CMv_FdPr.js | 1 - ...X.js => classDiagram-30eddba6-DcDvhOEg.js} | 2 +- ...s => classDiagram-v2-f2df5561-DE0A-Qsz.js} | 2 +- assets/clone-B3jXRIgC.js | 1 + assets/clone-DrDNZrmS.js | 1 - ...aQ4.js => createText-6b48ae7d-Be8-ICh4.js} | 2 +- ...ChNpa6jL.js => edges-d32062c0-DkG77r1N.js} | 2 +- ...K3-h.js => erDiagram-47591fe2-Dtou2gIg.js} | 2 +- ...7OMLol-.js => flowDb-4b19a42f-DF52bLNY.js} | 2 +- ...1g.js => flowDiagram-5540d9b9-DjBuNiGm.js} | 2 +- assets/flowDiagram-v2-3b53844e-BlTVTKH-.js | 1 + assets/flowDiagram-v2-3b53844e-BnHmn6Fa.js | 1 - ...chart-elk-definition-5fe447d6-BWURyEbg.js} | 2 +- ...k.js => ganttDiagram-9a3bba1f-BAvoVKG2.js} | 2 +- ...s => gitGraphDiagram-96e6b4ee-B-6IwZat.js} | 2 +- .../{graph-CZFZ88P_.js => graph-pHMMkIoI.js} | 2 +- ...l-DaODvwP8.js => haskell.html-IMJVSTSk.js} | 22 ++++---- ...BHnHNBwf.js => index-fc10efb0-DKnwFV05.js} | 2 +- ...tml-DhOr4nTI.js => index.html-BNRX3zGk.js} | 2 +- ...tml-CO3Zoej-.js => index.html-Bld3147c.js} | 2 +- ...tml-BdmV7lSx.js => index.html-ByMTKhkr.js} | 2 +- ...tml-DFZDy7w2.js => index.html-C7513JJK.js} | 2 +- ...tml-GGNRB_Os.js => index.html-CXqct-2E.js} | 2 +- ...tml-w6XYUv6Q.js => index.html-CykiMO0-.js} | 2 +- ...tml-DxGqHslQ.js => index.html-csQfK4x4.js} | 2 +- ...tml-BRNxgYFz.js => index.html-dT3bJ4l8.js} | 2 +- ...tml-vIVcD392.js => index.html-lh8H6DTQ.js} | 2 +- ...rH.js => infoDiagram-bcd20f53-X0KKOLmJ.js} | 2 +- ...tml-_G6iOctj.js => intro.html-B3Nq0b0F.js} | 6 +-- ...js => journeyDiagram-4fe6b3dc-Dspy-Y2l.js} | 2 +- ...{layout-T75UZZYO.js => layout-DeUj-ndh.js} | 2 +- assets/{line-Ca8uDOHw.js => line-D1cnbi83.js} | 2 +- ...{linear-arRLiK9s.js => linear-xwrFJpfU.js} | 2 +- ...e-C6L20Gds.js => mermaid.core-rZKkN201.js} | 8 +-- ...> mindmap-definition-f354de21-DculK-cN.js} | 2 +- ...K26.js => pieDiagram-79897490-fnwJYhyN.js} | 2 +- ...s => quadrantDiagram-62f64e94-C0C2SzAa.js} | 2 +- ...> requirementDiagram-05bf5f74-ClfIqA2N.js} | 2 +- ....js => sankeyDiagram-97764748-CYWvZqaT.js} | 2 +- ...s => sequenceDiagram-acc0e65c-icDQEXj_.js} | 2 +- ...d.js => stateDiagram-0ff1cf1a-B5rd5gQE.js} | 2 +- ...s => stateDiagram-v2-9a9d610d-Ck662So0.js} | 2 +- ...Zfgmxks.js => styles-3ed67cfa-DZEsZfiw.js} | 2 +- ...PYNbVDd.js => styles-991ebdfc-Ct9JCjtI.js} | 2 +- ...8LpHG_B.js => styles-d20c7d72-cvUR8323.js} | 2 +- ....js => svgDrawCommon-5ccd53ef-CdrfbuOv.js} | 2 +- ... timeline-definition-fea2a41d-BWECdlaH.js} | 2 +- ...js => xychartDiagram-ab372869-BqOEqsRf.js} | 2 +- index.html | 8 +-- manual/Configuration.html | 38 +++++++------- manual/Intro.html | 26 +++++----- manual/index.html | 6 +-- search-pro.worker.js | 2 +- sitemap.xml | 2 +- .../concept/BinaryAndSourceDistribution.html | 12 ++--- ...onfigurationIsTheBlueprintOfTheSystem.html | 10 ++-- .../HowFunctionalProgrammingShapesNixOS.html | 12 ++--- .../HowToMakePath-dependentProgramsWork.html | 10 ++-- .../concept/PurityIsOurUltimatePursuit.html | 16 +++--- tutorials/concept/index.html | 6 +-- tutorials/env/dev/haskell.html | 30 +++++------ tutorials/env/dev/index.html | 6 +-- tutorials/env/index.html | 6 +-- tutorials/index.html | 6 +-- tutorials/installation/Networking.html | 10 ++-- tutorials/installation/Subsystem.html | 36 ++++++------- tutorials/installation/VirtualMachine.html | 24 ++++----- tutorials/installation/WSL2.html | 14 ++--- tutorials/installation/index.html | 6 +-- tutorials/lang/Manuals.html | 12 ++--- tutorials/lang/QuickOverview.html | 44 +++++++--------- tutorials/lang/index.html | 6 +-- tutorials/module-system/index.html | 6 +-- tutorials/module-system/intro.html | 10 ++-- 102 files changed, 403 insertions(+), 412 deletions(-) rename assets/{404.html-aJVSI8g5.js => 404.html-7q9hhSdq.js} (94%) delete mode 100644 assets/BinaryAndSourceDistribution.html-16kgxc39.js create mode 100644 assets/BinaryAndSourceDistribution.html-C-rtSMVZ.js rename assets/{Configuration.html-C5G2PvFv.js => Configuration.html-CE9jQ0tW.js} (57%) delete mode 100644 assets/ConfigurationIsTheBlueprintOfTheSystem.html-Dttpxv9Y.js create mode 100644 assets/ConfigurationIsTheBlueprintOfTheSystem.html-djsOJ9Vw.js delete mode 100644 assets/HowFunctionalProgrammingShapesNixOS.html-DZ_IJvjM.js create mode 100644 assets/HowFunctionalProgrammingShapesNixOS.html-rr2UlYus.js create mode 100644 assets/HowToMakePath-dependentProgramsWork.html-D2834t8G.js delete mode 100644 assets/HowToMakePath-dependentProgramsWork.html-NhUUpgrU.js create mode 100644 assets/Intro.html-CEuRkNVT.js delete mode 100644 assets/Intro.html-CsM-htdy.js rename assets/{Manuals.html-BZkwlMGp.js => Manuals.html-DFp7igCI.js} (83%) rename assets/{Networking.html-xvk50dn3.js => Networking.html-D__jtwiK.js} (64%) delete mode 100644 assets/PurityIsOurUltimatePursuit.html-BDKKUkcr.js create mode 100644 assets/PurityIsOurUltimatePursuit.html-BJhNv_7j.js rename assets/{QuickOverview.html-BnfFQSVs.js => QuickOverview.html-BSo4J38r.js} (74%) rename assets/{SearchResult-NWjACjSk.js => SearchResult-B0cgczV8.js} (97%) rename assets/{Subsystem.html-B9GmW8h7.js => Subsystem.html-DSYLh798.js} (72%) rename assets/{VirtualMachine.html-UPKXfkj3.js => VirtualMachine.html-dR4GRz3A.js} (69%) create mode 100644 assets/WSL2.html-B1QMWOGS.js delete mode 100644 assets/WSL2.html-DbTShrQz.js rename assets/{app-KtH3BPxJ.js => app-BNkVxcYY.js} (98%) rename assets/{arc-D7LfjWVZ.js => arc-CCBbLdcJ.js} (96%) rename assets/{blockDiagram-91b80b7a-C6pI6ZUc.js => blockDiagram-91b80b7a-BBC8OS1A.js} (98%) rename assets/{c4Diagram-b2a90758-BwJ_z_Mb.js => c4Diagram-b2a90758-Dz5AbReI.js} (99%) create mode 100644 assets/channel-BjR0DzJB.js delete mode 100644 assets/channel-CMv_FdPr.js rename assets/{classDiagram-30eddba6-vYGySLZX.js => classDiagram-30eddba6-DcDvhOEg.js} (97%) rename assets/{classDiagram-v2-f2df5561-Cu8jWsiF.js => classDiagram-v2-f2df5561-DE0A-Qsz.js} (92%) create mode 100644 assets/clone-B3jXRIgC.js delete mode 100644 assets/clone-DrDNZrmS.js rename assets/{createText-6b48ae7d-GnsCfaQ4.js => createText-6b48ae7d-Be8-ICh4.js} (99%) rename assets/{edges-d32062c0-ChNpa6jL.js => edges-d32062c0-DkG77r1N.js} (99%) rename assets/{erDiagram-47591fe2-BbKXK3-h.js => erDiagram-47591fe2-Dtou2gIg.js} (99%) rename assets/{flowDb-4b19a42f-B7OMLol-.js => flowDb-4b19a42f-DF52bLNY.js} (99%) rename assets/{flowDiagram-5540d9b9-DkF9cC1g.js => flowDiagram-5540d9b9-DjBuNiGm.js} (97%) create mode 100644 assets/flowDiagram-v2-3b53844e-BlTVTKH-.js delete mode 100644 assets/flowDiagram-v2-3b53844e-BnHmn6Fa.js rename assets/{flowchart-elk-definition-5fe447d6-F5Y8qNy0.js => flowchart-elk-definition-5fe447d6-BWURyEbg.js} (99%) rename assets/{ganttDiagram-9a3bba1f-C1hkcUvk.js => ganttDiagram-9a3bba1f-BAvoVKG2.js} (99%) rename assets/{gitGraphDiagram-96e6b4ee-CvWjsn_w.js => gitGraphDiagram-96e6b4ee-B-6IwZat.js} (99%) rename assets/{graph-CZFZ88P_.js => graph-pHMMkIoI.js} (99%) rename assets/{haskell.html-DaODvwP8.js => haskell.html-IMJVSTSk.js} (68%) rename assets/{index-fc10efb0-BHnHNBwf.js => index-fc10efb0-DKnwFV05.js} (96%) rename assets/{index.html-DhOr4nTI.js => index.html-BNRX3zGk.js} (93%) rename assets/{index.html-CO3Zoej-.js => index.html-Bld3147c.js} (83%) rename assets/{index.html-BdmV7lSx.js => index.html-ByMTKhkr.js} (93%) rename assets/{index.html-DFZDy7w2.js => index.html-C7513JJK.js} (94%) rename assets/{index.html-GGNRB_Os.js => index.html-CXqct-2E.js} (93%) rename assets/{index.html-w6XYUv6Q.js => index.html-CykiMO0-.js} (93%) rename assets/{index.html-DxGqHslQ.js => index.html-csQfK4x4.js} (94%) rename assets/{index.html-BRNxgYFz.js => index.html-dT3bJ4l8.js} (93%) rename assets/{index.html-vIVcD392.js => index.html-lh8H6DTQ.js} (93%) rename assets/{infoDiagram-bcd20f53-A9wMI7rH.js => infoDiagram-bcd20f53-X0KKOLmJ.js} (98%) rename assets/{intro.html-_G6iOctj.js => intro.html-B3Nq0b0F.js} (68%) rename assets/{journeyDiagram-4fe6b3dc-BGKev6fL.js => journeyDiagram-4fe6b3dc-Dspy-Y2l.js} (98%) rename assets/{layout-T75UZZYO.js => layout-DeUj-ndh.js} (99%) rename assets/{line-Ca8uDOHw.js => line-D1cnbi83.js} (93%) rename assets/{linear-arRLiK9s.js => linear-xwrFJpfU.js} (99%) rename assets/{mermaid.core-C6L20Gds.js => mermaid.core-rZKkN201.js} (98%) rename assets/{mindmap-definition-f354de21-DhiAvLxS.js => mindmap-definition-f354de21-DculK-cN.js} (99%) rename assets/{pieDiagram-79897490-QkapWK26.js => pieDiagram-79897490-fnwJYhyN.js} (98%) rename assets/{quadrantDiagram-62f64e94-ClG9tsmb.js => quadrantDiagram-62f64e94-C0C2SzAa.js} (99%) rename assets/{requirementDiagram-05bf5f74-Jq4qUw68.js => requirementDiagram-05bf5f74-ClfIqA2N.js} (98%) rename assets/{sankeyDiagram-97764748-LZzRLiKc.js => sankeyDiagram-97764748-CYWvZqaT.js} (99%) rename assets/{sequenceDiagram-acc0e65c-1ltbI8a1.js => sequenceDiagram-acc0e65c-icDQEXj_.js} (99%) rename assets/{stateDiagram-0ff1cf1a-aWNHknpd.js => stateDiagram-0ff1cf1a-B5rd5gQE.js} (97%) rename assets/{stateDiagram-v2-9a9d610d-qAu6-oBP.js => stateDiagram-v2-9a9d610d-Ck662So0.js} (90%) rename assets/{styles-3ed67cfa-PZfgmxks.js => styles-3ed67cfa-DZEsZfiw.js} (98%) rename assets/{styles-991ebdfc-DPYNbVDd.js => styles-991ebdfc-Ct9JCjtI.js} (99%) rename assets/{styles-d20c7d72-I8LpHG_B.js => styles-d20c7d72-cvUR8323.js} (99%) rename assets/{svgDrawCommon-5ccd53ef-CGhu7SjD.js => svgDrawCommon-5ccd53ef-CdrfbuOv.js} (95%) rename assets/{timeline-definition-fea2a41d-LOqIv7kL.js => timeline-definition-fea2a41d-BWECdlaH.js} (99%) rename assets/{xychartDiagram-ab372869-YEof7nF5.js => xychartDiagram-ab372869-BqOEqsRf.js} (99%) diff --git a/404.html b/404.html index 59d25c2..7443a12 100644 --- a/404.html +++ b/404.html @@ -30,11 +30,11 @@ NixOS 中文 - - + + -
跳至主要內容

404

页面不存在

看起来你访问了一个失效的链接

',27),k=[b];function g(h,f){return a(),s("div",null,k)}const y=n(v,[["render",g],["__file","VirtualMachine.html.vue"]]),_=JSON.parse('{"path":"/tutorials/installation/VirtualMachine.html","title":"虚拟机安装","lang":"zh-CN","frontmatter":{"description":"虚拟机安装 无论你使用什么虚拟机安装,过程都是大同小异的。需要注意的是 HyperV 的安全启动是默认开启的,需要你手动关掉。 以下教程是基于 UEFI 的安装,所以还需要你启用 VMware 的 UEFI 选项(如果你真的使用 VMware 的话)。 启用 UEFI启用 UEFI 创建虚拟机 虚拟机的资源大小取决于你的应用,这个教程仅为新手提供一种基...","head":[["meta",{"property":"og:url","content":"https://nixos-cn.github.io/tutorials/installation/VirtualMachine.html"}],["meta",{"property":"og:site_name","content":"NixOS 中文"}],["meta",{"property":"og:title","content":"虚拟机安装"}],["meta",{"property":"og:description","content":"虚拟机安装 无论你使用什么虚拟机安装,过程都是大同小异的。需要注意的是 HyperV 的安全启动是默认开启的,需要你手动关掉。 以下教程是基于 UEFI 的安装,所以还需要你启用 VMware 的 UEFI 选项(如果你真的使用 VMware 的话)。 启用 UEFI启用 UEFI 创建虚拟机 虚拟机的资源大小取决于你的应用,这个教程仅为新手提供一种基..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:image","content":"https://nixos-cn.github.io/images/GreenHand/EnableUefi.webp"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-06-30T15:34:48.000Z"}],["meta",{"property":"article:author","content":"NixOS-CN"}],["meta",{"property":"article:modified_time","content":"2024-06-30T15:34:48.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"虚拟机安装\\",\\"image\\":[\\"https://nixos-cn.github.io/images/GreenHand/EnableUefi.webp\\",\\"https://nixos-cn.github.io/images/GreenHand/VmResAllocation.webp\\",\\"https://nixos-cn.github.io/images/GreenHand/VmNet.webp\\",\\"https://nixos-cn.github.io/images/GreenHand/FirstEncounterWithTty.webp\\",\\"https://nixos-cn.github.io/images/GreenHand/Efivars.webp\\",\\"https://nixos-cn.github.io/images/GreenHand/CheckNet.webp\\",\\"https://nixos-cn.github.io/images/GreenHand/RebuildSystem.webp\\",\\"https://nixos-cn.github.io/images/GreenHand/Lsblk.webp\\",\\"https://nixos-cn.github.io/images/GreenHand/HardwareConfig.webp\\",\\"https://nixos-cn.github.io/images/GreenHand/HelloKde.webp\\"],\\"dateModified\\":\\"2024-06-30T15:34:48.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"NixOS-CN\\",\\"url\\":\\"https://github.com/nixos-cn\\"}]}"]]},"headers":[{"level":2,"title":"创建虚拟机","slug":"创建虚拟机","link":"#创建虚拟机","children":[]},{"level":2,"title":"检查虚拟网络","slug":"检查虚拟网络","link":"#检查虚拟网络","children":[]},{"level":2,"title":"检查 UEFI 变量","slug":"检查-uefi-变量","link":"#检查-uefi-变量","children":[]},{"level":2,"title":"检查网络","slug":"检查网络","link":"#检查网络","children":[]},{"level":2,"title":"更换镜像频道","slug":"更换镜像频道","link":"#更换镜像频道","children":[]}],"git":{"createdTime":1696961467000,"updatedTime":1719761688000,"contributors":[{"name":"OpenTritium","email":"tritium404@hotmail.com","commits":1},{"name":"Ryan Yin","email":"xiaoyin_c@qq.com","commits":1}]},"readingTime":{"minutes":5.76,"words":1729},"filePathRelative":"tutorials/installation/VirtualMachine.md","localizedDate":"2023年10月10日","autoDesc":true,"excerpt":"\\n

无论你使用什么虚拟机安装,过程都是大同小异的。需要注意的是 HyperV 的安全启动是默认开启的,需要你手动关掉。

\\n

以下教程是基于 UEFI 的安装,所以还需要你启用 VMware 的 UEFI 选项(如果你真的使用\\nVMware 的话)。

\\n
\\"启用
启用 UEFI
\\n

创建虚拟机

\\n

虚拟机的资源大小取决于你的应用,这个教程仅为新手提供一种基本系统的安装方法,更加高阶的个性化教程会在额外的章节提及。

"}');export{y as comp,_ as data}; diff --git a/assets/WSL2.html-B1QMWOGS.js b/assets/WSL2.html-B1QMWOGS.js new file mode 100644 index 0000000..a42a920 --- /dev/null +++ b/assets/WSL2.html-B1QMWOGS.js @@ -0,0 +1,7 @@ +import{_ as o}from"./plugin-vue_export-helper-DlAUqK2U.js";import{r as l,o as r,c as i,a as e,b as s,d as n,e as t}from"./app-BNkVxcYY.js";const p={},c=t(`

WSL2 安装

启用 WSL 2 环境

快捷启用

对于新系统(Windows 11,Windows 10 的 2004 版本或更新的系统),使用==管理员权限 ==下的 CMD 或 Powershell 执行下面的命令即可:

wsl --install --no-distribution
+

这条命令会帮助你安装 WSL2 环境的依赖,相比逐个去启用组件是更简单快捷。

手动启用

与上面不同的是,这种方法可能适合稍旧一些的系统。

我们需要启用两个可选功能,它们分别是 “适用于 Linux 的 Windows 子系统” 和 “虚拟机平台”:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
+dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
+

然后重新启动计算机。

`,11),d={href:"https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi",target:"_blank",rel:"noopener noreferrer"},h=t(`

记得设置默认版本为 2:

wsl --set-default-version 2
+
`,2),u={class:"hint-container warning"},m=e("p",{class:"hint-container-title"},"尽力支持 NixOS-WSL 对 inbox 版本的 WSL(即通过 Window 可选功能启用的",-1),w=e("p",null,"WSL)是尽力支持的,如果有条件,请更新到最新 Windows 使用 Windows 商店分发(使用第一种方法安装方式)的最新 WSL 支持。:::",-1),g=e("h2",{id:"下载根文件系统",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#下载根文件系统"},[e("span",null,"下载根文件系统")])],-1),_={href:"https://github.com/nix-community/NixOS-WSL/releases",target:"_blank",rel:"noopener noreferrer"},x=e("code",null,"nixos-wsl.tar.gz",-1),v=t(`

然后决定好你要将这个文件系统导入至哪里,这里以 E:\\wslDistroStorage\\NixOS 举例,并且确认当前的工作文件夹就是你刚刚下载的根文件系统档案所在的文件夹。

wsl --import NixOS E:\\wslDistroStorage\\NixOS nixos-wsl.tar.gz --version 2
+

然后引导到 NixOS:

wsl -d NixOS
+
`,4),S={class:"hint-container tip"},b=e("p",{class:"hint-container-title"},"默认发行版可以通过 `wsl -s NixOS` 将 NixOS 设置为默认启动的发行版。:::",-1),W={href:"https://learn.microsoft.com/zh-cn/windows/wsl/troubleshooting",target:"_blank",rel:"noopener noreferrer"};function k(f,L){const a=l("ExternalLinkIcon");return r(),i("div",null,[c,e("p",null,[s("我们还需要一个完整的 Linux 内核:"),e("a",d,[s("WSL 2 Linux 内核更新包"),n(a)]),s(",安装它。")]),h,e("div",u,[m,w,g,e("p",null,[s("在 "),e("a",_,[s("NixOS-WSL 项目的最新 Release 页"),n(a)]),s("中下载 "),x,s("。")]),v,e("div",S,[b,e("p",null,[s("第一次启用会稍久,但是你不够幸运的话,可能终端上会出现令人厌烦的错误码,你可以在"),e("a",W,[s("疑难解答"),n(a)]),s(" 页面找到找到你可能期待的答案。")])])])])}const O=o(p,[["render",k],["__file","WSL2.html.vue"]]),C=JSON.parse('{"path":"/tutorials/installation/WSL2.html","title":"WSL2 安装","lang":"zh-CN","frontmatter":{"description":"WSL2 安装 启用 WSL 2 环境 快捷启用 对于新系统(Windows 11,Windows 10 的 2004 版本或更新的系统),使用==管理员权限 ==下的 CMD 或 Powershell 执行下面的命令即可: 这条命令会帮助你安装 WSL2 环境的依赖,相比逐个去启用组件是更简单快捷。 手动启用 与上面不同的是,这种方法可能适合稍旧一些...","head":[["meta",{"property":"og:url","content":"https://nixos-cn.github.io/tutorials/installation/WSL2.html"}],["meta",{"property":"og:site_name","content":"NixOS 中文"}],["meta",{"property":"og:title","content":"WSL2 安装"}],["meta",{"property":"og:description","content":"WSL2 安装 启用 WSL 2 环境 快捷启用 对于新系统(Windows 11,Windows 10 的 2004 版本或更新的系统),使用==管理员权限 ==下的 CMD 或 Powershell 执行下面的命令即可: 这条命令会帮助你安装 WSL2 环境的依赖,相比逐个去启用组件是更简单快捷。 手动启用 与上面不同的是,这种方法可能适合稍旧一些..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-06-30T15:34:48.000Z"}],["meta",{"property":"article:author","content":"NixOS-CN"}],["meta",{"property":"article:modified_time","content":"2024-06-30T15:34:48.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"WSL2 安装\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-06-30T15:34:48.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"NixOS-CN\\",\\"url\\":\\"https://github.com/nixos-cn\\"}]}"]]},"headers":[{"level":2,"title":"启用 WSL 2 环境","slug":"启用-wsl-2-环境","link":"#启用-wsl-2-环境","children":[]},{"level":2,"title":"快捷启用","slug":"快捷启用","link":"#快捷启用","children":[]},{"level":2,"title":"手动启用","slug":"手动启用","link":"#手动启用","children":[]}],"git":{"createdTime":1696961467000,"updatedTime":1719761688000,"contributors":[{"name":"OpenTritium","email":"tritium404@hotmail.com","commits":1},{"name":"Ryan Yin","email":"xiaoyin_c@qq.com","commits":1}]},"readingTime":{"minutes":1.59,"words":476},"filePathRelative":"tutorials/installation/WSL2.md","localizedDate":"2023年10月10日","autoDesc":true,"excerpt":"\\n

启用 WSL 2 环境

\\n

快捷启用

\\n

对于新系统(Windows 11,Windows 10 的 2004 版本或更新的系统),使用==管理员权限\\n==下的 CMD 或 Powershell 执行下面的命令即可:

\\n
wsl --install --no-distribution\\n
"}');export{O as comp,C as data}; diff --git a/assets/WSL2.html-DbTShrQz.js b/assets/WSL2.html-DbTShrQz.js deleted file mode 100644 index 0a023f7..0000000 --- a/assets/WSL2.html-DbTShrQz.js +++ /dev/null @@ -1,7 +0,0 @@ -import{_ as o}from"./plugin-vue_export-helper-DlAUqK2U.js";import{r as l,o as r,c as i,a,b as e,d as n,e as t}from"./app-KtH3BPxJ.js";const p={},c=t(`

WSL2 安装

启用 WSL 2 环境

快捷启用

对于新系统(Windows 11,Windows 10 的 2004 版本或更新的系统),使用管理员权限下的 CMD 或 Powershell 执行下面的命令即可:

wsl --install --no-distribution
-

这条命令会帮助你安装 WSL2 环境的依赖,相比逐个去启用组件是更简单快捷。

手动启用

与上面不同的是,这种方法可能适合稍旧一些的系统。

我们需要启用两个可选功能,它们分别是 “适用于 Linux 的 Windows 子系统” 和 “虚拟机平台”:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
-dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
-

然后重新启动计算机。

`,11),d={href:"https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi",target:"_blank",rel:"noopener noreferrer"},h=t(`

记得设置默认版本为 2:

wsl --set-default-version 2
-

尽力支持

NixOS-WSL 对 inbox 版本的 WSL(即通过 Window 可选功能启用的 WSL)是尽力支持的,如果有条件,请更新到最新 Windows 使用 Windows 商店分发(使用第一种方法安装方式)的最新 WSL 支持。

下载根文件系统

`,4),u={href:"https://github.com/nix-community/NixOS-WSL/releases",target:"_blank",rel:"noopener noreferrer"},m=a("code",null,"nixos-wsl.tar.gz",-1),w=t(`

然后决定好你要将这个文件系统导入至哪里,这里以 E:\\wslDistroStorage\\NixOS 举例,并且确认当前的工作文件夹就是你刚刚下载的根文件系统档案所在的文件夹。

wsl --import NixOS E:\\wslDistroStorage\\NixOS nixos-wsl.tar.gz --version 2
-

然后引导到 NixOS:

wsl -d NixOS
-

默认发行版

可以通过 wsl -s NixOS 将 NixOS 设置为默认启动的发行版。

`,5),g={href:"https://learn.microsoft.com/zh-cn/windows/wsl/troubleshooting",target:"_blank",rel:"noopener noreferrer"};function v(x,S){const s=l("ExternalLinkIcon");return r(),i("div",null,[c,a("p",null,[e("我们还需要一个完整的 Linux 内核:"),a("a",d,[e("WSL 2 Linux 内核更新包"),n(s)]),e(",安装它。")]),h,a("p",null,[e("在 "),a("a",u,[e("NixOS-WSL 项目的最新 Release 页"),n(s)]),e(" 中下载 "),m,e("。")]),w,a("p",null,[e("第一次启用会稍久,但是你不够幸运的话,可能终端上会出现令人厌烦的错误码,你可以在 "),a("a",g,[e("疑难解答"),n(s)]),e(" 页面找到找到你可能期待的答案。")])])}const W=o(p,[["render",v],["__file","WSL2.html.vue"]]),_=JSON.parse('{"path":"/tutorials/installation/WSL2.html","title":"WSL2 安装","lang":"zh-CN","frontmatter":{"description":"WSL2 安装 启用 WSL 2 环境 快捷启用 对于新系统(Windows 11,Windows 10 的 2004 版本或更新的系统),使用管理员权限下的 CMD 或 Powershell 执行下面的命令即可: 这条命令会帮助你安装 WSL2 环境的依赖,相比逐个去启用组件是更简单快捷。 手动启用 与上面不同的是,这种方法可能适合稍旧一些的系统。 ...","head":[["meta",{"property":"og:url","content":"https://nixos-cn.github.io/tutorials/installation/WSL2.html"}],["meta",{"property":"og:site_name","content":"NixOS 中文"}],["meta",{"property":"og:title","content":"WSL2 安装"}],["meta",{"property":"og:description","content":"WSL2 安装 启用 WSL 2 环境 快捷启用 对于新系统(Windows 11,Windows 10 的 2004 版本或更新的系统),使用管理员权限下的 CMD 或 Powershell 执行下面的命令即可: 这条命令会帮助你安装 WSL2 环境的依赖,相比逐个去启用组件是更简单快捷。 手动启用 与上面不同的是,这种方法可能适合稍旧一些的系统。 ..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2023-10-10T18:11:07.000Z"}],["meta",{"property":"article:author","content":"NixOS-CN"}],["meta",{"property":"article:modified_time","content":"2023-10-10T18:11:07.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"WSL2 安装\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2023-10-10T18:11:07.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"NixOS-CN\\",\\"url\\":\\"https://github.com/nixos-cn\\"}]}"]]},"headers":[{"level":2,"title":"启用 WSL 2 环境","slug":"启用-wsl-2-环境","link":"#启用-wsl-2-环境","children":[]},{"level":2,"title":"快捷启用","slug":"快捷启用","link":"#快捷启用","children":[]},{"level":2,"title":"手动启用","slug":"手动启用","link":"#手动启用","children":[]},{"level":2,"title":"下载根文件系统","slug":"下载根文件系统","link":"#下载根文件系统","children":[]}],"git":{"createdTime":1696961467000,"updatedTime":1696961467000,"contributors":[{"name":"OpenTritium","email":"tritium404@hotmail.com","commits":1}]},"readingTime":{"minutes":1.59,"words":476},"filePathRelative":"tutorials/installation/WSL2.md","localizedDate":"2023年10月10日","autoDesc":true,"excerpt":"\\n

启用 WSL 2 环境

\\n

快捷启用

\\n

对于新系统(Windows 11,Windows 10 的 2004 版本或更新的系统),使用管理员权限下的 CMD 或 Powershell 执行下面的命令即可:

\\n
wsl --install --no-distribution\\n
"}');export{W as comp,_ as data}; diff --git a/assets/app-KtH3BPxJ.js b/assets/app-BNkVxcYY.js similarity index 98% rename from assets/app-KtH3BPxJ.js rename to assets/app-BNkVxcYY.js index b8efe14..a37a4c6 100644 --- a/assets/app-KtH3BPxJ.js +++ b/assets/app-BNkVxcYY.js @@ -1,6 +1,6 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index.html-CO3Zoej-.js","assets/plugin-vue_export-helper-DlAUqK2U.js","assets/Configuration.html-C5G2PvFv.js","assets/Intro.html-CsM-htdy.js","assets/BinaryAndSourceDistribution.html-16kgxc39.js","assets/ConfigurationIsTheBlueprintOfTheSystem.html-Dttpxv9Y.js","assets/HowFunctionalProgrammingShapesNixOS.html-DZ_IJvjM.js","assets/HowToMakePath-dependentProgramsWork.html-NhUUpgrU.js","assets/PurityIsOurUltimatePursuit.html-BDKKUkcr.js","assets/Networking.html-xvk50dn3.js","assets/Subsystem.html-B9GmW8h7.js","assets/VirtualMachine.html-UPKXfkj3.js","assets/WSL2.html-DbTShrQz.js","assets/Manuals.html-BZkwlMGp.js","assets/QuickOverview.html-BnfFQSVs.js","assets/intro.html-_G6iOctj.js","assets/haskell.html-DaODvwP8.js","assets/404.html-aJVSI8g5.js","assets/index.html-DhOr4nTI.js","assets/index.html-GGNRB_Os.js","assets/index.html-vIVcD392.js","assets/index.html-DFZDy7w2.js","assets/index.html-BdmV7lSx.js","assets/index.html-DxGqHslQ.js","assets/index.html-BRNxgYFz.js","assets/index.html-w6XYUv6Q.js"] + __vite__mapDeps.viteFileDeps = ["assets/index.html-Bld3147c.js","assets/plugin-vue_export-helper-DlAUqK2U.js","assets/Configuration.html-CE9jQ0tW.js","assets/Intro.html-CEuRkNVT.js","assets/BinaryAndSourceDistribution.html-C-rtSMVZ.js","assets/ConfigurationIsTheBlueprintOfTheSystem.html-djsOJ9Vw.js","assets/HowFunctionalProgrammingShapesNixOS.html-rr2UlYus.js","assets/HowToMakePath-dependentProgramsWork.html-D2834t8G.js","assets/PurityIsOurUltimatePursuit.html-BJhNv_7j.js","assets/Networking.html-D__jtwiK.js","assets/Subsystem.html-DSYLh798.js","assets/VirtualMachine.html-dR4GRz3A.js","assets/WSL2.html-B1QMWOGS.js","assets/Manuals.html-DFp7igCI.js","assets/QuickOverview.html-BSo4J38r.js","assets/intro.html-B3Nq0b0F.js","assets/haskell.html-IMJVSTSk.js","assets/404.html-7q9hhSdq.js","assets/index.html-BNRX3zGk.js","assets/index.html-CXqct-2E.js","assets/index.html-lh8H6DTQ.js","assets/index.html-C7513JJK.js","assets/index.html-ByMTKhkr.js","assets/index.html-csQfK4x4.js","assets/index.html-dT3bJ4l8.js","assets/index.html-CykiMO0-.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } @@ -20,7 +20,7 @@ function __vite__mapDeps(indexes) { * @vue/runtime-dom v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const yd="http://www.w3.org/2000/svg",wd="http://www.w3.org/1998/Math/MathML",Dt=typeof document<"u"?document:null,Ts=Dt&&Dt.createElement("template"),_d={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Dt.createElementNS(yd,e):t==="mathml"?Dt.createElementNS(wd,e):Dt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Dt.createTextNode(e),createComment:e=>Dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,l){const s=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{Ts.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=Ts.content;if(r==="svg"||r==="mathml"){const i=a.firstChild;for(;i.firstChild;)a.appendChild(i.firstChild);a.removeChild(i)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Rt="transition",jn="animation",In=Symbol("_vtc"),Wt=(e,{slots:t})=>f(Lf,xi(e),t);Wt.displayName="Transition";const Ei={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Cd=Wt.props=Ae({},ni,Ei),Jt=(e,t=[])=>{te(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ls=e=>e?te(e)?e.some(t=>t.length>1):e.length>1:!1;function xi(e){const t={};for(const R in e)R in Ei||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:i=l,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=Ed(o),_=g&&g[0],w=g&&g[1],{onBeforeEnter:y,onEnter:x,onEnterCancelled:b,onLeave:S,onLeaveCancelled:$,onBeforeAppear:E=y,onAppear:G=x,onAppearCancelled:N=b}=t,q=(R,J,Ce)=>{Mt(R,J?u:a),Mt(R,J?c:s),Ce&&Ce()},P=(R,J)=>{R._isLeaving=!1,Mt(R,d),Mt(R,h),Mt(R,p),J&&J()},z=R=>(J,Ce)=>{const be=R?G:x,W=()=>q(J,R,Ce);Jt(be,[J,W]),As(()=>{Mt(J,R?i:l),xt(J,R?u:a),Ls(be)||Is(J,r,_,W)})};return Ae(t,{onBeforeEnter(R){Jt(y,[R]),xt(R,l),xt(R,s)},onBeforeAppear(R){Jt(E,[R]),xt(R,i),xt(R,c)},onEnter:z(!1),onAppear:z(!0),onLeave(R,J){R._isLeaving=!0;const Ce=()=>P(R,J);xt(R,d),Si(),xt(R,p),As(()=>{R._isLeaving&&(Mt(R,d),xt(R,h),Ls(S)||Is(R,r,w,Ce))}),Jt(S,[R,Ce])},onEnterCancelled(R){q(R,!1),Jt(b,[R])},onAppearCancelled(R){q(R,!0),Jt(N,[R])},onLeaveCancelled(R){P(R),Jt($,[R])}})}function Ed(e){if(e==null)return null;if(Ee(e))return[ko(e.enter),ko(e.leave)];{const t=ko(e);return[t,t]}}function ko(e){return Su(e)}function xt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[In]||(e[In]=new Set)).add(t)}function Mt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[In];n&&(n.delete(t),n.size||(e[In]=void 0))}function As(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xd=0;function Is(e,t,n,r){const o=e._endId=++xd,l=()=>{o===e._endId&&r()};if(n)return setTimeout(l,n);const{type:s,timeout:a,propCount:i}=ki(e,t);if(!s)return r();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,p),l()},p=h=>{h.target===e&&++u>=i&&d()};setTimeout(()=>{u(n[g]||"").split(", "),o=r(`${Rt}Delay`),l=r(`${Rt}Duration`),s=Ps(o,l),a=r(`${jn}Delay`),i=r(`${jn}Duration`),c=Ps(a,i);let u=null,d=0,p=0;t===Rt?s>0&&(u=Rt,d=s,p=l.length):t===jn?c>0&&(u=jn,d=c,p=i.length):(d=Math.max(s,c),u=d>0?s>c?Rt:jn:null,p=u?u===Rt?l.length:i.length:0);const h=u===Rt&&/\b(transform|all)(,|$)/.test(r(`${Rt}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:h}}function Ps(e,t){for(;e.lengthRs(n)+Rs(e[r])))}function Rs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Si(){return document.body.offsetHeight}function kd(e,t,n){const r=e[In];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Os=Symbol("_vod"),Sd=Symbol("_vsh"),Td=Symbol(""),Ld=/(^|;)\s*display\s*:/;function Ad(e,t,n){const r=e.style,o=$e(n);let l=!1;if(n&&!o){if(t)if($e(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&Vr(r,a,"")}else for(const s in t)n[s]==null&&Vr(r,s,"");for(const s in n)s==="display"&&(l=!0),Vr(r,s,n[s])}else if(o){if(t!==n){const s=r[Td];s&&(n+=";"+s),r.cssText=n,l=Ld.test(n)}}else t&&e.removeAttribute("style");Os in e&&(e[Os]=l?r.display:"",e[Sd]&&(r.display="none"))}const Ms=/\s*!important$/;function Vr(e,t,n){if(te(n))n.forEach(r=>Vr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Id(e,t);Ms.test(n)?e.setProperty(Mn(r),n.replace(Ms,""),"important"):e[r]=n}}const $s=["Webkit","Moz","ms"],So={};function Id(e,t){const n=So[t];if(n)return n;let r=lt(t);if(r!=="filter"&&r in e)return So[t]=r;r=mr(r);for(let o=0;o<$s.length;o++){const l=$s[o]+r;if(l in e)return So[t]=l}return t}const Ns="http://www.w3.org/1999/xlink";function Pd(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ns,t.slice(6,t.length)):e.setAttributeNS(Ns,t,n);else{const l=Ru(t);n==null||l&&!Ta(n)?e.removeAttribute(t):e.setAttribute(t,l?"":n)}}function Rd(e,t,n,r,o,l,s){if(t==="innerHTML"||t==="textContent"){r&&s(r,o,l),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?e.getAttribute("value")||"":e.value,u=n??"";(c!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Ta(n):n==null&&c==="string"?(n="",i=!0):c==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(t)}function Od(e,t,n,r){e.addEventListener(t,n,r)}function Md(e,t,n,r){e.removeEventListener(t,n,r)}const Hs=Symbol("_vei");function $d(e,t,n,r,o=null){const l=e[Hs]||(e[Hs]={}),s=l[t];if(r&&s)s.value=r;else{const[a,i]=Nd(t);if(r){const c=l[t]=Fd(r,o);Od(e,a,c,i)}else s&&(Md(e,a,s,i),l[t]=void 0)}}const Ds=/(?:Once|Passive|Capture)$/;function Nd(e){let t;if(Ds.test(e)){t={};let r;for(;r=e.match(Ds);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Mn(e.slice(2)),t]}let To=0;const Hd=Promise.resolve(),Dd=()=>To||(Hd.then(()=>To=0),To=Date.now());function Fd(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ot(jd(r,n.value),t,5,[r])};return n.value=e,n.attached=Dd(),n}function jd(e,t){if(te(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Bd=(e,t,n,r,o,l,s,a,i)=>{const c=o==="svg";t==="class"?kd(e,r,c):t==="style"?Ad(e,n,r):vr(t)?dl(t)||$d(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zd(e,t,r,c))?Rd(e,t,r,l,s,a,i):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Pd(e,t,r,c))};function zd(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fs(t)&&ne(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Fs(t)&&$e(n)?!1:t in e}const Ti=new WeakMap,Li=new WeakMap,Jr=Symbol("_moveCb"),js=Symbol("_enterCb"),Ai={name:"TransitionGroup",props:Ae({},Cd,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Nn(),r=ti();let o,l;return si(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!qd(o[0].el,n.vnode.el,s))return;o.forEach(Gd),o.forEach(Kd);const a=o.filter(Ud);Si(),a.forEach(i=>{const c=i.el,u=c.style;xt(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Jr]=p=>{p&&p.target!==c||(!p||/transform$/.test(p.propertyName))&&(c.removeEventListener("transitionend",d),c[Jr]=null,Mt(c,s))};c.addEventListener("transitionend",d)})}),()=>{const s=le(e),a=xi(s);let i=s.tag||Ze;o=l,l=t.default?Ll(t.default()):[];for(let c=0;cdelete e.mode;Ai.props;const Wd=Ai;function Gd(e){const t=e.el;t[Jr]&&t[Jr](),t[js]&&t[js]()}function Kd(e){Li.set(e,e.el.getBoundingClientRect())}function Ud(e){const t=Ti.get(e),n=Li.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const l=e.el.style;return l.transform=l.webkitTransform=`translate(${r}px,${o}px)`,l.transitionDuration="0s",e}}function qd(e,t,n){const r=e.cloneNode(),o=e[In];o&&o.forEach(a=>{a.split(/\s+/).forEach(i=>i&&r.classList.remove(i))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(r);const{hasTransform:s}=ki(r);return l.removeChild(r),s}const Yd=Ae({patchProp:Bd},_d);let Lo,Bs=!1;function Zd(){return Lo=Bs?Lo:ed(Yd),Bs=!0,Lo}const Xd=(...e)=>{const t=Zd().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Qd(r);if(o)return n(o,!0,Jd(o))},t};function Jd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Qd(e){return $e(e)?document.querySelector(e):e}var ep=["link","meta","script","style","noscript","template"],tp=["title","base"],np=([e,t,n])=>tp.includes(e)?e:ep.includes(e)?e==="meta"&&t.name?`${e}.${t.name}`:e==="template"&&t.id?`${e}.${t.id}`:JSON.stringify([e,Object.entries(t).map(([r,o])=>typeof o=="boolean"?o?[r,""]:null:[r,o]).filter(r=>r!=null).sort(([r],[o])=>r.localeCompare(o)),n]):null,rp=e=>{const t=new Set,n=[];return e.forEach(r=>{const o=np(r);o&&!t.has(o)&&(t.add(o),n.push(r))}),n},op=e=>e[0]==="/"?e:`/${e}`,Ii=e=>e[e.length-1]==="/"||e.endsWith(".html")?e:`${e}/`,fn=e=>/^(https?:)?\/\//.test(e),lp=/.md((\?|#).*)?$/,ar=(e,t="/")=>!!(fn(e)||e.startsWith("/")&&!e.startsWith(t)&&!lp.test(e)),Pi=e=>/^[a-z][a-z0-9+.-]*:/.test(e),Cr=e=>Object.prototype.toString.call(e)==="[object Object]",sp=e=>{const[t,...n]=e.split(/(\?|#)/);if(!t||t.endsWith("/"))return e;let r=t.replace(/(^|\/)README.md$/i,"$1index.html");return r.endsWith(".md")?r=r.substring(0,r.length-3)+".html":r.endsWith(".html")||(r=r+".html"),r.endsWith("/index.html")&&(r=r.substring(0,r.length-10)),r+n.join("")},Ol=e=>e[e.length-1]==="/"?e.slice(0,-1):e,Ri=e=>e[0]==="/"?e.slice(1):e,ap=(e,t)=>{const n=Object.keys(e).sort((r,o)=>{const l=o.split("/").length-r.split("/").length;return l!==0?l:o.length-r.length});for(const r of n)if(t.startsWith(r))return r;return"/"},ip=e=>typeof e=="function",Le=e=>typeof e=="string";const cp="modulepreload",up=function(e){return"/"+e},zs={},ce=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const l=document.getElementsByTagName("link");o=Promise.all(n.map(s=>{if(s=up(s),s in zs)return;zs[s]=!0;const a=s.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(!!r)for(let d=l.length-1;d>=0;d--){const p=l[d];if(p.href===s&&(!a||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":cp,a||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),a)return new Promise((d,p)=>{u.addEventListener("load",d),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})}))}return o.then(()=>t()).catch(l=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=l,window.dispatchEvent(s),!s.defaultPrevented)throw l})},fp=JSON.parse("{}"),dp=Object.fromEntries([["/",{loader:()=>ce(()=>import("./index.html-CO3Zoej-.js"),__vite__mapDeps([0,1])),meta:{y:"h",t:"主页",i:"home-fill"}}],["/manual/Configuration.html",{loader:()=>ce(()=>import("./Configuration.html-C5G2PvFv.js"),__vite__mapDeps([2,1])),meta:{y:"a",t:"NixOS 配置"}}],["/manual/Intro.html",{loader:()=>ce(()=>import("./Intro.html-CsM-htdy.js"),__vite__mapDeps([3,1])),meta:{y:"a",t:"NixOS 入门"}}],["/tutorials/concept/BinaryAndSourceDistribution.html",{loader:()=>ce(()=>import("./BinaryAndSourceDistribution.html-16kgxc39.js"),__vite__mapDeps([4,1])),meta:{y:"a",t:"二进制分发与源码分发"}}],["/tutorials/concept/ConfigurationIsTheBlueprintOfTheSystem.html",{loader:()=>ce(()=>import("./ConfigurationIsTheBlueprintOfTheSystem.html-Dttpxv9Y.js"),__vite__mapDeps([5,1])),meta:{y:"a",t:"配置是一幅描绘系统的蓝图"}}],["/tutorials/concept/HowFunctionalProgrammingShapesNixOS.html",{loader:()=>ce(()=>import("./HowFunctionalProgrammingShapesNixOS.html-DZ_IJvjM.js"),__vite__mapDeps([6,1])),meta:{y:"a",t:"若干个函数凝聚成一个巨大的函数"}}],["/tutorials/concept/HowToMakePath-dependentProgramsWork.html",{loader:()=>ce(()=>import("./HowToMakePath-dependentProgramsWork.html-NhUUpgrU.js"),__vite__mapDeps([7,1])),meta:{y:"a",t:"如何让路径依赖的程序正常工作"}}],["/tutorials/concept/PurityIsOurUltimatePursuit.html",{loader:()=>ce(()=>import("./PurityIsOurUltimatePursuit.html-BDKKUkcr.js"),__vite__mapDeps([8,1])),meta:{y:"a",t:"纯净是我们的至高追求"}}],["/tutorials/installation/Networking.html",{loader:()=>ce(()=>import("./Networking.html-xvk50dn3.js"),__vite__mapDeps([9,1])),meta:{y:"a",t:"NixOS 的网络问题"}}],["/tutorials/installation/Subsystem.html",{loader:()=>ce(()=>import("./Subsystem.html-B9GmW8h7.js"),__vite__mapDeps([10,1])),meta:{y:"a",t:"双系统安装"}}],["/tutorials/installation/VirtualMachine.html",{loader:()=>ce(()=>import("./VirtualMachine.html-UPKXfkj3.js"),__vite__mapDeps([11,1])),meta:{y:"a",t:"虚拟机安装"}}],["/tutorials/installation/WSL2.html",{loader:()=>ce(()=>import("./WSL2.html-DbTShrQz.js"),__vite__mapDeps([12,1])),meta:{y:"a",t:"WSL2 安装"}}],["/tutorials/lang/Manuals.html",{loader:()=>ce(()=>import("./Manuals.html-BZkwlMGp.js"),__vite__mapDeps([13,1])),meta:{y:"a",t:"Nix 语言进阶手册"}}],["/tutorials/lang/QuickOverview.html",{loader:()=>ce(()=>import("./QuickOverview.html-BnfFQSVs.js"),__vite__mapDeps([14,1])),meta:{y:"a",t:"Nix 语言快速入门"}}],["/tutorials/module-system/intro.html",{loader:()=>ce(()=>import("./intro.html-_G6iOctj.js"),__vite__mapDeps([15,1])),meta:{y:"a",t:"Nix 的模块系统"}}],["/tutorials/env/dev/haskell.html",{loader:()=>ce(()=>import("./haskell.html-DaODvwP8.js"),__vite__mapDeps([16,1])),meta:{y:"a",t:"Haskell 开发环境部署",i:"haskell",s:"Haskell"}}],["/404.html",{loader:()=>ce(()=>import("./404.html-aJVSI8g5.js"),__vite__mapDeps([17,1])),meta:{y:"p",t:""}}],["/manual/",{loader:()=>ce(()=>import("./index.html-DhOr4nTI.js"),__vite__mapDeps([18,1])),meta:{y:"p",t:"Manual"}}],["/tutorials/concept/",{loader:()=>ce(()=>import("./index.html-GGNRB_Os.js"),__vite__mapDeps([19,1])),meta:{y:"p",t:"Concept"}}],["/tutorials/",{loader:()=>ce(()=>import("./index.html-vIVcD392.js"),__vite__mapDeps([20,1])),meta:{y:"p",t:"Tutorials"}}],["/tutorials/installation/",{loader:()=>ce(()=>import("./index.html-DFZDy7w2.js"),__vite__mapDeps([21,1])),meta:{y:"p",t:"Installation"}}],["/tutorials/lang/",{loader:()=>ce(()=>import("./index.html-BdmV7lSx.js"),__vite__mapDeps([22,1])),meta:{y:"p",t:"Lang"}}],["/tutorials/module-system/",{loader:()=>ce(()=>import("./index.html-DxGqHslQ.js"),__vite__mapDeps([23,1])),meta:{y:"p",t:"Module System"}}],["/tutorials/env/dev/",{loader:()=>ce(()=>import("./index.html-BRNxgYFz.js"),__vite__mapDeps([24,1])),meta:{y:"p",t:"Dev"}}],["/tutorials/env/",{loader:()=>ce(()=>import("./index.html-w6XYUv6Q.js"),__vite__mapDeps([25,1])),meta:{y:"p",t:"Env"}}]]);/*! +**/const yd="http://www.w3.org/2000/svg",wd="http://www.w3.org/1998/Math/MathML",Dt=typeof document<"u"?document:null,Ts=Dt&&Dt.createElement("template"),_d={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Dt.createElementNS(yd,e):t==="mathml"?Dt.createElementNS(wd,e):Dt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Dt.createTextNode(e),createComment:e=>Dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,l){const s=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{Ts.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=Ts.content;if(r==="svg"||r==="mathml"){const i=a.firstChild;for(;i.firstChild;)a.appendChild(i.firstChild);a.removeChild(i)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Rt="transition",jn="animation",In=Symbol("_vtc"),Wt=(e,{slots:t})=>f(Lf,xi(e),t);Wt.displayName="Transition";const Ei={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Cd=Wt.props=Ae({},ni,Ei),Jt=(e,t=[])=>{te(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ls=e=>e?te(e)?e.some(t=>t.length>1):e.length>1:!1;function xi(e){const t={};for(const R in e)R in Ei||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:i=l,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,g=Ed(o),_=g&&g[0],w=g&&g[1],{onBeforeEnter:y,onEnter:x,onEnterCancelled:b,onLeave:S,onLeaveCancelled:$,onBeforeAppear:E=y,onAppear:G=x,onAppearCancelled:N=b}=t,q=(R,J,Ce)=>{Mt(R,J?u:a),Mt(R,J?c:s),Ce&&Ce()},P=(R,J)=>{R._isLeaving=!1,Mt(R,d),Mt(R,h),Mt(R,p),J&&J()},z=R=>(J,Ce)=>{const be=R?G:x,W=()=>q(J,R,Ce);Jt(be,[J,W]),As(()=>{Mt(J,R?i:l),xt(J,R?u:a),Ls(be)||Is(J,r,_,W)})};return Ae(t,{onBeforeEnter(R){Jt(y,[R]),xt(R,l),xt(R,s)},onBeforeAppear(R){Jt(E,[R]),xt(R,i),xt(R,c)},onEnter:z(!1),onAppear:z(!0),onLeave(R,J){R._isLeaving=!0;const Ce=()=>P(R,J);xt(R,d),Si(),xt(R,p),As(()=>{R._isLeaving&&(Mt(R,d),xt(R,h),Ls(S)||Is(R,r,w,Ce))}),Jt(S,[R,Ce])},onEnterCancelled(R){q(R,!1),Jt(b,[R])},onAppearCancelled(R){q(R,!0),Jt(N,[R])},onLeaveCancelled(R){P(R),Jt($,[R])}})}function Ed(e){if(e==null)return null;if(Ee(e))return[ko(e.enter),ko(e.leave)];{const t=ko(e);return[t,t]}}function ko(e){return Su(e)}function xt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[In]||(e[In]=new Set)).add(t)}function Mt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[In];n&&(n.delete(t),n.size||(e[In]=void 0))}function As(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xd=0;function Is(e,t,n,r){const o=e._endId=++xd,l=()=>{o===e._endId&&r()};if(n)return setTimeout(l,n);const{type:s,timeout:a,propCount:i}=ki(e,t);if(!s)return r();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,p),l()},p=h=>{h.target===e&&++u>=i&&d()};setTimeout(()=>{u(n[g]||"").split(", "),o=r(`${Rt}Delay`),l=r(`${Rt}Duration`),s=Ps(o,l),a=r(`${jn}Delay`),i=r(`${jn}Duration`),c=Ps(a,i);let u=null,d=0,p=0;t===Rt?s>0&&(u=Rt,d=s,p=l.length):t===jn?c>0&&(u=jn,d=c,p=i.length):(d=Math.max(s,c),u=d>0?s>c?Rt:jn:null,p=u?u===Rt?l.length:i.length:0);const h=u===Rt&&/\b(transform|all)(,|$)/.test(r(`${Rt}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:h}}function Ps(e,t){for(;e.lengthRs(n)+Rs(e[r])))}function Rs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Si(){return document.body.offsetHeight}function kd(e,t,n){const r=e[In];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Os=Symbol("_vod"),Sd=Symbol("_vsh"),Td=Symbol(""),Ld=/(^|;)\s*display\s*:/;function Ad(e,t,n){const r=e.style,o=$e(n);let l=!1;if(n&&!o){if(t)if($e(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&Vr(r,a,"")}else for(const s in t)n[s]==null&&Vr(r,s,"");for(const s in n)s==="display"&&(l=!0),Vr(r,s,n[s])}else if(o){if(t!==n){const s=r[Td];s&&(n+=";"+s),r.cssText=n,l=Ld.test(n)}}else t&&e.removeAttribute("style");Os in e&&(e[Os]=l?r.display:"",e[Sd]&&(r.display="none"))}const Ms=/\s*!important$/;function Vr(e,t,n){if(te(n))n.forEach(r=>Vr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Id(e,t);Ms.test(n)?e.setProperty(Mn(r),n.replace(Ms,""),"important"):e[r]=n}}const $s=["Webkit","Moz","ms"],So={};function Id(e,t){const n=So[t];if(n)return n;let r=lt(t);if(r!=="filter"&&r in e)return So[t]=r;r=mr(r);for(let o=0;o<$s.length;o++){const l=$s[o]+r;if(l in e)return So[t]=l}return t}const Ns="http://www.w3.org/1999/xlink";function Pd(e,t,n,r,o){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ns,t.slice(6,t.length)):e.setAttributeNS(Ns,t,n);else{const l=Ru(t);n==null||l&&!Ta(n)?e.removeAttribute(t):e.setAttribute(t,l?"":n)}}function Rd(e,t,n,r,o,l,s){if(t==="innerHTML"||t==="textContent"){r&&s(r,o,l),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?e.getAttribute("value")||"":e.value,u=n??"";(c!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Ta(n):n==null&&c==="string"?(n="",i=!0):c==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(t)}function Od(e,t,n,r){e.addEventListener(t,n,r)}function Md(e,t,n,r){e.removeEventListener(t,n,r)}const Hs=Symbol("_vei");function $d(e,t,n,r,o=null){const l=e[Hs]||(e[Hs]={}),s=l[t];if(r&&s)s.value=r;else{const[a,i]=Nd(t);if(r){const c=l[t]=Fd(r,o);Od(e,a,c,i)}else s&&(Md(e,a,s,i),l[t]=void 0)}}const Ds=/(?:Once|Passive|Capture)$/;function Nd(e){let t;if(Ds.test(e)){t={};let r;for(;r=e.match(Ds);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Mn(e.slice(2)),t]}let To=0;const Hd=Promise.resolve(),Dd=()=>To||(Hd.then(()=>To=0),To=Date.now());function Fd(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ot(jd(r,n.value),t,5,[r])};return n.value=e,n.attached=Dd(),n}function jd(e,t){if(te(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const Fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Bd=(e,t,n,r,o,l,s,a,i)=>{const c=o==="svg";t==="class"?kd(e,r,c):t==="style"?Ad(e,n,r):vr(t)?dl(t)||$d(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zd(e,t,r,c))?Rd(e,t,r,l,s,a,i):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Pd(e,t,r,c))};function zd(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fs(t)&&ne(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Fs(t)&&$e(n)?!1:t in e}const Ti=new WeakMap,Li=new WeakMap,Jr=Symbol("_moveCb"),js=Symbol("_enterCb"),Ai={name:"TransitionGroup",props:Ae({},Cd,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Nn(),r=ti();let o,l;return si(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!qd(o[0].el,n.vnode.el,s))return;o.forEach(Gd),o.forEach(Kd);const a=o.filter(Ud);Si(),a.forEach(i=>{const c=i.el,u=c.style;xt(c,s),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Jr]=p=>{p&&p.target!==c||(!p||/transform$/.test(p.propertyName))&&(c.removeEventListener("transitionend",d),c[Jr]=null,Mt(c,s))};c.addEventListener("transitionend",d)})}),()=>{const s=le(e),a=xi(s);let i=s.tag||Ze;o=l,l=t.default?Ll(t.default()):[];for(let c=0;cdelete e.mode;Ai.props;const Wd=Ai;function Gd(e){const t=e.el;t[Jr]&&t[Jr](),t[js]&&t[js]()}function Kd(e){Li.set(e,e.el.getBoundingClientRect())}function Ud(e){const t=Ti.get(e),n=Li.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const l=e.el.style;return l.transform=l.webkitTransform=`translate(${r}px,${o}px)`,l.transitionDuration="0s",e}}function qd(e,t,n){const r=e.cloneNode(),o=e[In];o&&o.forEach(a=>{a.split(/\s+/).forEach(i=>i&&r.classList.remove(i))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(r);const{hasTransform:s}=ki(r);return l.removeChild(r),s}const Yd=Ae({patchProp:Bd},_d);let Lo,Bs=!1;function Zd(){return Lo=Bs?Lo:ed(Yd),Bs=!0,Lo}const Xd=(...e)=>{const t=Zd().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Qd(r);if(o)return n(o,!0,Jd(o))},t};function Jd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Qd(e){return $e(e)?document.querySelector(e):e}var ep=["link","meta","script","style","noscript","template"],tp=["title","base"],np=([e,t,n])=>tp.includes(e)?e:ep.includes(e)?e==="meta"&&t.name?`${e}.${t.name}`:e==="template"&&t.id?`${e}.${t.id}`:JSON.stringify([e,Object.entries(t).map(([r,o])=>typeof o=="boolean"?o?[r,""]:null:[r,o]).filter(r=>r!=null).sort(([r],[o])=>r.localeCompare(o)),n]):null,rp=e=>{const t=new Set,n=[];return e.forEach(r=>{const o=np(r);o&&!t.has(o)&&(t.add(o),n.push(r))}),n},op=e=>e[0]==="/"?e:`/${e}`,Ii=e=>e[e.length-1]==="/"||e.endsWith(".html")?e:`${e}/`,fn=e=>/^(https?:)?\/\//.test(e),lp=/.md((\?|#).*)?$/,ar=(e,t="/")=>!!(fn(e)||e.startsWith("/")&&!e.startsWith(t)&&!lp.test(e)),Pi=e=>/^[a-z][a-z0-9+.-]*:/.test(e),Cr=e=>Object.prototype.toString.call(e)==="[object Object]",sp=e=>{const[t,...n]=e.split(/(\?|#)/);if(!t||t.endsWith("/"))return e;let r=t.replace(/(^|\/)README.md$/i,"$1index.html");return r.endsWith(".md")?r=r.substring(0,r.length-3)+".html":r.endsWith(".html")||(r=r+".html"),r.endsWith("/index.html")&&(r=r.substring(0,r.length-10)),r+n.join("")},Ol=e=>e[e.length-1]==="/"?e.slice(0,-1):e,Ri=e=>e[0]==="/"?e.slice(1):e,ap=(e,t)=>{const n=Object.keys(e).sort((r,o)=>{const l=o.split("/").length-r.split("/").length;return l!==0?l:o.length-r.length});for(const r of n)if(t.startsWith(r))return r;return"/"},ip=e=>typeof e=="function",Le=e=>typeof e=="string";const cp="modulepreload",up=function(e){return"/"+e},zs={},ce=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const l=document.getElementsByTagName("link");o=Promise.all(n.map(s=>{if(s=up(s),s in zs)return;zs[s]=!0;const a=s.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(!!r)for(let d=l.length-1;d>=0;d--){const p=l[d];if(p.href===s&&(!a||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":cp,a||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),a)return new Promise((d,p)=>{u.addEventListener("load",d),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})}))}return o.then(()=>t()).catch(l=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=l,window.dispatchEvent(s),!s.defaultPrevented)throw l})},fp=JSON.parse("{}"),dp=Object.fromEntries([["/",{loader:()=>ce(()=>import("./index.html-Bld3147c.js"),__vite__mapDeps([0,1])),meta:{y:"h",t:"主页",i:"home-fill"}}],["/manual/Configuration.html",{loader:()=>ce(()=>import("./Configuration.html-CE9jQ0tW.js"),__vite__mapDeps([2,1])),meta:{y:"a",t:"NixOS 配置"}}],["/manual/Intro.html",{loader:()=>ce(()=>import("./Intro.html-CEuRkNVT.js"),__vite__mapDeps([3,1])),meta:{y:"a",t:"NixOS 入门"}}],["/tutorials/concept/BinaryAndSourceDistribution.html",{loader:()=>ce(()=>import("./BinaryAndSourceDistribution.html-C-rtSMVZ.js"),__vite__mapDeps([4,1])),meta:{y:"a",t:"二进制分发与源码分发"}}],["/tutorials/concept/ConfigurationIsTheBlueprintOfTheSystem.html",{loader:()=>ce(()=>import("./ConfigurationIsTheBlueprintOfTheSystem.html-djsOJ9Vw.js"),__vite__mapDeps([5,1])),meta:{y:"a",t:"配置是一幅描绘系统的蓝图"}}],["/tutorials/concept/HowFunctionalProgrammingShapesNixOS.html",{loader:()=>ce(()=>import("./HowFunctionalProgrammingShapesNixOS.html-rr2UlYus.js"),__vite__mapDeps([6,1])),meta:{y:"a",t:"若干个函数凝聚成一个巨大的函数"}}],["/tutorials/concept/HowToMakePath-dependentProgramsWork.html",{loader:()=>ce(()=>import("./HowToMakePath-dependentProgramsWork.html-D2834t8G.js"),__vite__mapDeps([7,1])),meta:{y:"a",t:"如何让路径依赖的程序正常工作"}}],["/tutorials/concept/PurityIsOurUltimatePursuit.html",{loader:()=>ce(()=>import("./PurityIsOurUltimatePursuit.html-BJhNv_7j.js"),__vite__mapDeps([8,1])),meta:{y:"a",t:"纯净是我们的至高追求"}}],["/tutorials/installation/Networking.html",{loader:()=>ce(()=>import("./Networking.html-D__jtwiK.js"),__vite__mapDeps([9,1])),meta:{y:"a",t:"NixOS 的网络问题"}}],["/tutorials/installation/Subsystem.html",{loader:()=>ce(()=>import("./Subsystem.html-DSYLh798.js"),__vite__mapDeps([10,1])),meta:{y:"a",t:"双系统安装"}}],["/tutorials/installation/VirtualMachine.html",{loader:()=>ce(()=>import("./VirtualMachine.html-dR4GRz3A.js"),__vite__mapDeps([11,1])),meta:{y:"a",t:"虚拟机安装"}}],["/tutorials/installation/WSL2.html",{loader:()=>ce(()=>import("./WSL2.html-B1QMWOGS.js"),__vite__mapDeps([12,1])),meta:{y:"a",t:"WSL2 安装"}}],["/tutorials/lang/Manuals.html",{loader:()=>ce(()=>import("./Manuals.html-DFp7igCI.js"),__vite__mapDeps([13,1])),meta:{y:"a",t:"Nix 语言进阶手册"}}],["/tutorials/lang/QuickOverview.html",{loader:()=>ce(()=>import("./QuickOverview.html-BSo4J38r.js"),__vite__mapDeps([14,1])),meta:{y:"a",t:"Nix 语言快速入门"}}],["/tutorials/module-system/intro.html",{loader:()=>ce(()=>import("./intro.html-B3Nq0b0F.js"),__vite__mapDeps([15,1])),meta:{y:"a",t:"Nix 的模块系统"}}],["/tutorials/env/dev/haskell.html",{loader:()=>ce(()=>import("./haskell.html-IMJVSTSk.js"),__vite__mapDeps([16,1])),meta:{y:"a",t:"Haskell 开发环境部署",i:"haskell",s:"Haskell"}}],["/404.html",{loader:()=>ce(()=>import("./404.html-7q9hhSdq.js"),__vite__mapDeps([17,1])),meta:{y:"p",t:""}}],["/manual/",{loader:()=>ce(()=>import("./index.html-BNRX3zGk.js"),__vite__mapDeps([18,1])),meta:{y:"p",t:"Manual"}}],["/tutorials/concept/",{loader:()=>ce(()=>import("./index.html-CXqct-2E.js"),__vite__mapDeps([19,1])),meta:{y:"p",t:"Concept"}}],["/tutorials/",{loader:()=>ce(()=>import("./index.html-lh8H6DTQ.js"),__vite__mapDeps([20,1])),meta:{y:"p",t:"Tutorials"}}],["/tutorials/installation/",{loader:()=>ce(()=>import("./index.html-C7513JJK.js"),__vite__mapDeps([21,1])),meta:{y:"p",t:"Installation"}}],["/tutorials/lang/",{loader:()=>ce(()=>import("./index.html-ByMTKhkr.js"),__vite__mapDeps([22,1])),meta:{y:"p",t:"Lang"}}],["/tutorials/module-system/",{loader:()=>ce(()=>import("./index.html-csQfK4x4.js"),__vite__mapDeps([23,1])),meta:{y:"p",t:"Module System"}}],["/tutorials/env/dev/",{loader:()=>ce(()=>import("./index.html-dT3bJ4l8.js"),__vite__mapDeps([24,1])),meta:{y:"p",t:"Dev"}}],["/tutorials/env/",{loader:()=>ce(()=>import("./index.html-CykiMO0-.js"),__vite__mapDeps([25,1])),meta:{y:"p",t:"Env"}}]]);/*! * vue-router v4.3.0 * (c) 2024 Eduardo San Martin Morote * @license MIT @@ -32,4 +32,4 @@ function __vite__mapDeps(indexes) { ${r}}`)),t.appendChild(o)}},Iv=e=>{const t=pn(e),n={html:[],js:[],css:[],isLegal:!1};return["html","js","css"].forEach(r=>{const o=t.filter(l=>ga[r].types.includes(l));if(o.length){const l=o[0];n[r]=[e[l].replace(/^\n|\n$/g,""),ga[r].map[l]||l]}}),n.isLegal=(!n.html.length||n.html[1]==="none")&&(!n.js.length||n.js[1]==="none")&&(!n.css.length||n.css[1]==="none"),n},Lc=e=>e.replace(/
/g,"
").replace(/<((\S+)[^<]*?)\s+\/>/g,"<$1>"),Ac=e=>`
${Lc(e)}
`,Pv=e=>`${e.replace("export default ","const $reactApp = ").replace(/App\.__style__(\s*)=(\s*)`([\s\S]*)?`/,"")}; -ReactDOM.createRoot(document.getElementById("app")).render(React.createElement($reactApp))`,Rv=e=>e.replace(/export\s+default\s*\{(\n*[\s\S]*)\n*\}\s*;?$/u,"Vue.createApp({$1}).mount('#app')").replace(/export\s+default\s*define(Async)?Component\s*\(\s*\{(\n*[\s\S]*)\n*\}\s*\)\s*;?$/u,"Vue.createApp({$1}).mount('#app')").trim(),Ic=e=>`(function(exports){var module={};module.exports=exports;${e};return module.exports.__esModule?module.exports.default:module.exports;})({})`,Ov=(e,t)=>{const n=Gl(t),r=e.js[0]||"";return{...n,html:Lc(e.html[0]||""),js:r,css:e.css[0]||"",isLegal:e.isLegal,getScript:()=>{var o;return n.useBabel?((o=window.Babel.transform(r,{presets:["es2015"]}))==null?void 0:o.code)||"":r}}},Mv=/