@@ -26,7 +26,6 @@ to look through all of the following sources:
26
26
$ nix search packagename
27
27
```
28
28
29
- ### String interpolation
30
29
### Use variable as map/object key
31
30
32
31
``` nix
@@ -154,9 +153,20 @@ References:
154
153
- euank #nixos @ Freenode
155
154
- https://nixos.org/nixpkgs/manual/#chap-trivial-builders
156
155
157
- ## NixOps
156
+ ### Determine NixOS machine architecture
157
+
158
+ To figure out what architecture your box is running, you can run ` nix-info ` or
159
+ for example ` nix-eval ` :
158
160
159
- ### switch-to-configuration throws error deployment fails
161
+ ``` nix
162
+ $ nix-info
163
+ system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.3.3, channels(username): "", channels(root): "nixos-19.09.2213.71c6a1c4a83", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
164
+
165
+ $ nix eval nixpkgs.system
166
+ "x86_64-linux"
167
+ ```
168
+
169
+ ### NixOps: switch-to-configuration throws error deployment fails
160
170
161
171
```
162
172
[...]
@@ -187,19 +197,6 @@ nixops needs to know what system it is targetting explicitly.
187
197
188
198
Reference: < https://github.com/NixOS/nixops/issues/864 >
189
199
190
- ### Determine NixOS machine architecture
191
-
192
- To figure out what architecture your box is running, you can run ` nix-info ` or
193
- for example ` nix-eval ` :
194
-
195
- ``` nix
196
- $ nix-info
197
- system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.3.3, channels(username): "", channels(root): "nixos-19.09.2213.71c6a1c4a83", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
198
-
199
- $ nix eval nixpkgs.system
200
- "x86_64-linux"
201
- ```
202
-
203
200
## References
204
201
205
202
- < https://nixery.dev/nix-1p.html >
0 commit comments