DeterminateSystems/zero-to-nix
소개
Zero to Nix는 Nix와 flakes를 학습하기 위한 안내서입니다. Determinate Systems가 제작했습니다.
학습 및 교육측정된 스타 증가
- in 24h
- 0
- in 7 days
- +3
- in 15 days
- +4
- in 1 month
- +5
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalZero to Nix
Zero to Nix is your guide to learning Nix and flakes. It was created and is maintained by Determinate Systems.
Setup
Make sure that you have Nix and direnv installed, then:
# Activate Nix development environment
direnv allow
Developing the site
Run locally
To run the site in development mode (with live reload when you make changes):
dev
To run the site in preview mode (with a static web server and no live reload):
preview
# Alternatively
nix run
Then open your browser to http://localhost:3000.
Run checks locally
The site has some CI checks that run in GitHub Actions, like link checking. To run the whole CI suite locally:
ci
Build locally
To ensure that the site can build properly in response to changes:
build
As an alternative, you can run the whole CI suite, which also builds the site.
Format code
To ensure that everything is properly formatted:
format
Publishing
The Zero to Nix site is automatically published on Vercel, which also provides deploy previews for pull requests.
Technologies
Zero to Nix's "stack" 🥞:
Suggested VS Code settings
If you happen to use VS Code as your editor, we recommend adding these extensions:
astro-build.astro-vscodeunifiedjs.vscode-mdxbradlc.vscode-tailwindcssesbenp.prettier-vscodevscode.vscode-typescript-next
We also recommend adding these settings to your local .vscode/settings.json:
{
"[mdx]": {
// By default, this extension overwrites our one-sentence-per-line policy
"editor.formatOnSave": false,
// This is a nice helper for longer sentences
"editor.wordWrapColumn": 100,
"editor.wordWrap": "wordWrapColumn",
},
// Format everything using the Prettier config
"editor.defaultFormatter": "esbenp.prettier-vscode",
// Keep junk out of your search results
"search.exclude": {
"**/.direnv": true,
"**/.git": true,
"**/node_modules": true,
"dist": true,
"package-lock.json": true,
"*.d.ts": true,
"tmp": true,
},
}
관련 프로젝트 살펴보기
불러오는 중…