Skip to content

Commit 7d2994f

Browse files
committed
clean and order sections
1 parent e31013b commit 7d2994f

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

collections/_posts/2020-03-07-nix-and-nixos-notes.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ to look through all of the following sources:
2626
$ nix search packagename
2727
```
2828

29-
### String interpolation
3029
### Use variable as map/object key
3130

3231
```nix
@@ -154,9 +153,20 @@ References:
154153
- euank #nixos @ Freenode
155154
- https://nixos.org/nixpkgs/manual/#chap-trivial-builders
156155

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`:
158160

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
160170

161171
```
162172
[...]
@@ -187,19 +197,6 @@ nixops needs to know what system it is targetting explicitly.
187197

188198
Reference: <https://github.com/NixOS/nixops/issues/864>
189199

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-
203200
## References
204201

205202
- <https://nixery.dev/nix-1p.html>

0 commit comments

Comments
 (0)