-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
# nixos-config
My NixOS configuration files for my laptop and the microVM running this site.
I generally try to keep these configs simple and pragmatic, so stuff like Home Manager, Firefox extensions, and other 3rd-party flakes are out-of-scope. Besides, I don't want to write hundreds of lines of Nix and spend all day Nixifying my entire setup. This repo is for machine-specific stuff. For my machine-independent configs, see [my dotfiles repo](/dotfiles). Another reason for this separation is so that I can just clone my dotfiles anywhere, not just on NixOS machines.
I also made a [NixOS cheatsheet](https://forgejo.mit.edu/SIPB/nixos-cheatsheet/).
Building the server OCI image:
```bash
nix build
# NOT the same thing as podman import
podman load < result
podman push forgejo.mit.edu/xy/nixos-config
```
Hyades config:
```json
{
"image": "forgejo.mit.edu/xy/nixos-config",
"ports": {
"xy": 80
},
"volumes": {
"home": "/home/a",
"ssh-keys": "/etc/ssh/keys",
"srv": "/srv"
},
"envs": {
"KRUN_INIT_PID1": "1",
"PATH": "/run/current-system/sw/bin"
},
"network": "",
"exposeports": [
2222
]
}
```