You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`paths = [./hosts ./modules ./rices];` - paths to be recursively imported by Denix. Remove `./rices` if you don't want to use rices.
61
61
62
-
## Hosts
62
+
## Hosts {#hosts}
63
63
Create a `hosts` directory, and within it, create a subdirectory with the name of your host, for example, `desktop`.
64
64
65
65
In this subdirectory, create a `default.nix` file with the following content:
@@ -91,7 +91,7 @@ delib.host {
91
91
92
92
The `default.nix` file will be modified later after adding modules and rices, so you can keep it open.
93
93
94
-
## Rices
94
+
## Rices {#rices}
95
95
Skip this section if you do not wish to use rices.
96
96
97
97
Create a `rices` directory, and within it, create a subdirectory with the name of your rice, for example, `dark`.
@@ -104,7 +104,7 @@ delib.rice {
104
104
}
105
105
```
106
106
107
-
## Modules
107
+
## Modules {#modules}
108
108
Create a `modules` directory, and within it, create a `config` subdirectory (typically, it contains modules that are not tied to a specific program or service).
109
109
110
110
It should be mentioned that modules represent your configuration, meaning it's up to your imagination, and you are free to change the modules as you wish.
@@ -126,7 +126,7 @@ delib.module {
126
126
127
127
This file is optional, as are any of its options, which are only used by you, but it is strongly recommended as good practice.
128
128
129
-
### Hosts
129
+
### Hosts {#modules-hosts}
130
130
Also, create a `hosts.nix` file in this same directory (`modules/config`), and write any example from [Hosts - Examples](/hosts/examples).
131
131
132
132
For example, we will take ["With the `type` Option"](/hosts/examples#type-option):
@@ -171,7 +171,7 @@ delib.host {
171
171
}
172
172
```
173
173
174
-
### Rices
174
+
### Rices {#modules-rices}
175
175
Skip this section if you are not using rices.
176
176
177
177
In the `modules/config` directory, create a `rices.nix` file, and write any example from [Rices - Examples](/rices/examples).
@@ -208,7 +208,7 @@ delib.host {
208
208
}
209
209
```
210
210
211
-
### Home Manager
211
+
### Home Manager {#modules-home-manager}
212
212
If you created a [constants module](#modules-constants), just create a `home.nix` file with the following content:
213
213
```nix
214
214
{delib, ...}:
@@ -239,7 +239,7 @@ delib.module {
239
239
}
240
240
```
241
241
242
-
### User
242
+
### User {#modules-user}
243
243
You can also create a `user.nix` file with the configuration of your NixOS user:
244
244
```nix
245
245
{delib, ...}:
@@ -280,7 +280,7 @@ delib.module {
280
280
}
281
281
```
282
282
283
-
## Conclusion
283
+
## Conclusion {#conclusion}
284
284
If you have followed the instructions precisely, you will end up with the following configuration directory tree:
0 commit comments