Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit00bb7c0

Browse files
committed
main
1 parent99d2d08 commit00bb7c0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#Modules
2+
3+
Generally any nix file is a module, contains either a function or a attribute set.
4+
5+
##Module Identifier
6+
7+
- relative path to a nix file
8+
- keys in`NIX_PATH`: any key in`NIX_PATH` is a valid identifier of nix module.
9+
```sh
10+
$echo$NIX_PATH
11+
12+
nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
13+
```
14+
15+
```nix
16+
{
17+
import = [
18+
<nixpkgs> # [!code highlight]
19+
];
20+
}
21+
22+
# or
23+
24+
let
25+
pkgs = import <nixpkgs>; # [!code highlight]
26+
in {
27+
28+
}
29+
```

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp