|
@@ -0,0 +1,34 @@
|
|
|
+# nix
|
|
|
+
|
|
|
+> ํจํค์ง ๊ด๋ฆฌ๋ฅผ ์ ๋ขฐ์ฑ ์๊ณ , ์ฌํ ๊ฐ๋ฅํ๋ฉฐ, ์ ์ธ์ ์ผ๋ก ๋ง๋๋ ๊ฐ๋ ฅํ ํจํค์ง ๊ด๋ฆฌ์.
|
|
|
+> `nix`๋ ์คํ์ ์ด๋ฉฐ ์คํ์ ๊ธฐ๋ฅ ์ฌ์ฉ์ ํ์ฑํํด์ผ ํฉ๋๋ค. ์์ ์ ์ธ ์ธํฐํ์ด์ค๋ฅผ ์ํ๋ฉด `tldr nix classic`์ ์ฐธ์กฐํ์ธ์.
|
|
|
+> `build`, `develop`, `flake`, `registry`, `profile`, `search`, `repl`, `store`, `edit`, `why-depends` ๋ฑ์ ์ผ๋ถ ํ์ ๋ช
๋ น์๋ ์์ฒด ์ฌ์ฉ ์ค๋ช
์๊ฐ ์์ต๋๋ค.
|
|
|
+> ๋ ๋ง์ ์ ๋ณด: <https://nixos.org/manual/nix>.
|
|
|
+
|
|
|
+- `nix` ๋ช
๋ น ํ์ฑํ:
|
|
|
+
|
|
|
+`mkdir -p ~/.config/nix; echo 'experimental-features = nix-command flakes' > ~/.config/nix/nix.conf`
|
|
|
+
|
|
|
+- nixpkgs์์ ์ด๋ฆ์ด๋ ์ค๋ช
์ผ๋ก ํจํค์ง ๊ฒ์:
|
|
|
+
|
|
|
+`nix search nixpkgs {{๊ฒ์์ด}}`
|
|
|
+
|
|
|
+- nixpkgs์์ ์ง์ ํ ํจํค์ง๊ฐ ์ฌ์ฉ ๊ฐ๋ฅํ ์
ธ ์์:
|
|
|
+
|
|
|
+`nix shell {{nixpkgs#ํจํค์ง1 nixpkgs#ํจํค์ง2 nixpkgs#ํจํค์ง3 ...}}`
|
|
|
+
|
|
|
+- nixpkgs์์ ์ผ๋ถ ํจํค์ง๋ฅผ ์๊ตฌ์ ์ผ๋ก ์ค์น:
|
|
|
+
|
|
|
+`nix profile install {{nixpkgs#ํจํค์ง1 nixpkgs#ํจํค์ง2 nixpkgs#ํจํค์ง3 ...}}`
|
|
|
+
|
|
|
+- Nix ์ ์ฅ์์์ ์ฌ์ฉํ์ง ์๋ ๊ฒฝ๋ก ์ ๊ฑฐํ์ฌ ๊ณต๊ฐ ํ๋ณด:
|
|
|
+
|
|
|
+`nix store gc`
|
|
|
+
|
|
|
+- Nix ํํ์์ ํ๊ฐํ๊ธฐ ์ํ ๋ํํ ํ๊ฒฝ ์์:
|
|
|
+
|
|
|
+`nix repl`
|
|
|
+
|
|
|
+- ํน์ ํ์ ๋ช
๋ น์ ๋ํ ๋์๋ง ํ์:
|
|
|
+
|
|
|
+`nix help {{ํ์_๋ช
๋ น}}`
|